# Logfile created on Mon Oct 01 15:28:16 +0100 2012 by logger.rb/1.2.6 Booted Spree using version 1.1.3 SQL (1227.8ms) DELETE FROM "spree_products" SQL (372.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (574.2ms) DELETE FROM "spree_option_types" SQL (1324.5ms) DELETE FROM "spree_option_values" SQL (199.7ms) DELETE FROM "spree_properties" SQL (3064.6ms) DELETE FROM "spree_product_properties" SQL (163.0ms) DELETE FROM "spree_variants" SQL (5.2ms) DELETE FROM "spree_taxons" SQL (7.7ms) DELETE FROM "spree_taxonomies" SQL (3.9ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:24 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:24 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.272065' WHERE "spree_products"."id" = 924 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 924], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.274413' WHERE "spree_products"."id" = 924  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3202 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.277349' WHERE "spree_products"."id" = 924  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 924  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["product_id", nil], ["property_id", 801], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 924, "updated_at" = '2012-10-01 14:28:25.294732' WHERE "spree_product_properties"."id" = 969 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 924) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1164], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 924 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2031, 924) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1165 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1165], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2032, 924) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 924) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::OptionType Exists (1.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 924 AND "spree_option_types"."id" = 546 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 924) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["option_type_id", 546], ["position", 1], ["product_id", 924], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 546) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "jpeg"], ["option_type_id", 546], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.669812' WHERE "spree_products"."id" = 924 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 924], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.671131' WHERE "spree_products"."id" = 924  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1070, 3203) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 546) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "PDF"], ["option_type_id", 546], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.677140' WHERE "spree_products"."id" = 924 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 924], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.678454' WHERE "spree_products"."id" = 924  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1071, 3204) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 546) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00], ["name", "PNG"], ["option_type_id", 546], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.683093' WHERE "spree_products"."id" = 924 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 924], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:25.684216' WHERE "spree_products"."id" = 924  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1072, 3205) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 924]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 924) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3203 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3204 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3205 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 924) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.814586' WHERE "spree_products"."id" = 924  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3203 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.815580' WHERE "spree_products"."id" = 924 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.816726' WHERE "spree_products"."id" = 924  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3204 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.817548' WHERE "spree_products"."id" = 924 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 924 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.818546' WHERE "spree_products"."id" = 924  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3205 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.819722' WHERE "spree_products"."id" = 924 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 924) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 924 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.822680', "count_on_hand" = 25 WHERE "spree_products"."id" = 924 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 924 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.831768' WHERE "spree_products"."id" = 925 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 925], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.833350' WHERE "spree_products"."id" = 925  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3206 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.834924' WHERE "spree_products"."id" = 925  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 925  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["product_id", nil], ["property_id", 802], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 925, "updated_at" = '2012-10-01 14:28:26.843350' WHERE "spree_product_properties"."id" = 970 Created New ProductProperty # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 925) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 925 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (925, 2031) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1166 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1166], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (925, 2033) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2031 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2031]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2031], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1164], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2031]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2034]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2034 THEN 2031 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2031]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2034]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2034 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2034]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2034], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1164], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2034]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2035]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2035 THEN 2034 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2034]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2035]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (925, 2034)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (925, 2035) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 925) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 925 AND "spree_option_types"."id" = 546 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 925) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00], ["option_type_id", 546], ["position", 1], ["product_id", 925], ["updated_at", Mon, 01 Oct 2012 14:28:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.898351' WHERE "spree_products"."id" = 925 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 925], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.900087' WHERE "spree_products"."id" = 925  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1070, 3207) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.903227' WHERE "spree_products"."id" = 925 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 925], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.905007' WHERE "spree_products"."id" = 925  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3208, 1071) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.907841' WHERE "spree_products"."id" = 925 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 925], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:26.909334' WHERE "spree_products"."id" = 925  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1072, 3209) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 925]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 925) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3207 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3208 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3209 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 925) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.181802' WHERE "spree_products"."id" = 925  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3207 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.182726' WHERE "spree_products"."id" = 925 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.183601' WHERE "spree_products"."id" = 925  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3208 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.184370' WHERE "spree_products"."id" = 925 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 925 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.185648' WHERE "spree_products"."id" = 925  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3209 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.186576' WHERE "spree_products"."id" = 925 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 925) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 925 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.188831', "count_on_hand" = 11 WHERE "spree_products"."id" = 925 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 925 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.195316' WHERE "spree_products"."id" = 926 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.196280' WHERE "spree_products"."id" = 926  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3210 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.197370' WHERE "spree_products"."id" = 926  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 926  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["product_id", nil], ["property_id", 803], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 926, "updated_at" = '2012-10-01 14:28:28.203370' WHERE "spree_product_properties"."id" = 971 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["product_id", nil], ["property_id", 802], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 926, "updated_at" = '2012-10-01 14:28:28.205747' WHERE "spree_product_properties"."id" = 972 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["product_id", nil], ["property_id", 804], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 926, "updated_at" = '2012-10-01 14:28:28.209275' WHERE "spree_product_properties"."id" = 973 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 926) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1167 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1167], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 926 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (926, 2036) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1164 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2031 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2031]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2031], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1164], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2031]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2037]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2037 THEN 2031 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2031]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2037]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (926, 2037)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (926, 2031) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 926) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 926 AND "spree_option_types"."id" = 546 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 926) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["option_type_id", 546], ["position", 1], ["product_id", 926], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.233502' WHERE "spree_products"."id" = 926 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.234776' WHERE "spree_products"."id" = 926  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3211, 1070) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.237050' WHERE "spree_products"."id" = 926 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.237916' WHERE "spree_products"."id" = 926  (0.5ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1071, 3212) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 546 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.240607' WHERE "spree_products"."id" = 926 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.241371' WHERE "spree_products"."id" = 926  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1072, 3213) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 926]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 926 AND "spree_option_types"."id" = 547 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 926) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["option_type_id", 547], ["position", 2], ["product_id", 926], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 547 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 547) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00], ["name", "black_white"], ["option_type_id", 547], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:28 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:28.253735' WHERE "spree_products"."id" = 926 SQL (0.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.324964' WHERE "spree_products"."id" = 926  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3214, 1073) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 547 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 547) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:29 UTC +00:00], ["name", "colour"], ["option_type_id", 547], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.333015' WHERE "spree_products"."id" = 926 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 926], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.333984' WHERE "spree_products"."id" = 926  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3215, 1074) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 926]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 926) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3211 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3212 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3213 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3214 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3215 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 926) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.348138' WHERE "spree_products"."id" = 926  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3211 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.349387' WHERE "spree_products"."id" = 926 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.350673' WHERE "spree_products"."id" = 926  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3212 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.351547' WHERE "spree_products"."id" = 926 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.352787' WHERE "spree_products"."id" = 926  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3213 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.353555' WHERE "spree_products"."id" = 926 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.355081' WHERE "spree_products"."id" = 926  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3214 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.355936' WHERE "spree_products"."id" = 926 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 926 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.357219' WHERE "spree_products"."id" = 926  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3215 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.357947' WHERE "spree_products"."id" = 926 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 926) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:29.360809', "count_on_hand" = 53 WHERE "spree_products"."id" = 926 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 926 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.9ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 926 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3210) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 926)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.3ms) rollback transaction SQL (6.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (413.9ms) DELETE FROM "spree_option_types" SQL (4.2ms) DELETE FROM "spree_option_values" SQL (1571.2ms) DELETE FROM "spree_properties" SQL (1267.1ms) DELETE FROM "spree_product_properties" SQL (6.2ms) DELETE FROM "spree_variants" SQL (3.6ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (811.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (4.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:33.908299' WHERE "spree_products"."id" = 927 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 927], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:33.910919' WHERE "spree_products"."id" = 927  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3216 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:33.912452' WHERE "spree_products"."id" = 927  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 927  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["product_id", nil], ["property_id", 805], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 927, "updated_at" = '2012-10-01 14:28:33.920453' WHERE "spree_product_properties"."id" = 974 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 927) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1168], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 927 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2038, 927) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1169 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1169], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2039, 927) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 927) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:28:33 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 927 AND "spree_option_types"."id" = 548 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 927) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["option_type_id", 548], ["position", 1], ["product_id", 927], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 548) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["name", "jpeg"], ["option_type_id", 548], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.734822' WHERE "spree_products"."id" = 927 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 927], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.736196' WHERE "spree_products"."id" = 927  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1075, 3217) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 548) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["name", "PDF"], ["option_type_id", 548], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.740897' WHERE "spree_products"."id" = 927 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 927], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.742131' WHERE "spree_products"."id" = 927  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1076, 3218) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 548) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["name", "PNG"], ["option_type_id", 548], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.747464' WHERE "spree_products"."id" = 927 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 927], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.748896' WHERE "spree_products"."id" = 927  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3219, 1077) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 927]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 927) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3217 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3218 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3219 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 927) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.762932' WHERE "spree_products"."id" = 927  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3217 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.764112' WHERE "spree_products"."id" = 927 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.765727' WHERE "spree_products"."id" = 927  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3218 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.766352' WHERE "spree_products"."id" = 927 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 927 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.767893' WHERE "spree_products"."id" = 927  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3219 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.768787' WHERE "spree_products"."id" = 927 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 927) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 927 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.771153', "count_on_hand" = 25 WHERE "spree_products"."id" = 927 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 927 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.778839' WHERE "spree_products"."id" = 928 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 928], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.779785' WHERE "spree_products"."id" = 928  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3220 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:34.781296' WHERE "spree_products"."id" = 928  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 928  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["product_id", nil], ["property_id", 806], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 928, "updated_at" = '2012-10-01 14:28:34.788106' WHERE "spree_product_properties"."id" = 975 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 928) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 928 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2038, 928) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1170 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1170], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2040, 928) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2038 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2038]] SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2038], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1168], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2038]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2041]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2041 THEN 2038 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2038]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2041]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2041 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2041]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2041], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1168], ["updated_at", Mon, 01 Oct 2012 14:28:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2041]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2042]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2042 THEN 2041 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2041]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2042]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2041, 928)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2042, 928) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 928) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 928 AND "spree_option_types"."id" = 548 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 928) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["option_type_id", 548], ["position", 1], ["product_id", 928], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.305858' WHERE "spree_products"."id" = 928 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 928], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.307345' WHERE "spree_products"."id" = 928  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1075, 3221) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.310345' WHERE "spree_products"."id" = 928 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 928], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.311782' WHERE "spree_products"."id" = 928  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1076, 3222) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.314529' WHERE "spree_products"."id" = 928 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 928], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.315473' WHERE "spree_products"."id" = 928  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3223, 1077) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 928]] Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 928) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3221 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3222 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3223 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 928) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.336353' WHERE "spree_products"."id" = 928  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3221 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.337379' WHERE "spree_products"."id" = 928 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.338650' WHERE "spree_products"."id" = 928  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3222 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.339351' WHERE "spree_products"."id" = 928 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 928 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.340399' WHERE "spree_products"."id" = 928  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3223 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.341328' WHERE "spree_products"."id" = 928 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 928) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 928 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.343906', "count_on_hand" = 11 WHERE "spree_products"."id" = 928 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 928 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.351444' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.352731' WHERE "spree_products"."id" = 929  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3224 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.354029' WHERE "spree_products"."id" = 929  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 929  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["product_id", nil], ["property_id", 807], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 929, "updated_at" = '2012-10-01 14:28:35.361473' WHERE "spree_product_properties"."id" = 976 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["product_id", nil], ["property_id", 806], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 929, "updated_at" = '2012-10-01 14:28:35.363799' WHERE "spree_product_properties"."id" = 977 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["product_id", nil], ["property_id", 808], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 929, "updated_at" = '2012-10-01 14:28:35.366753' WHERE "spree_product_properties"."id" = 978 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 929) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1171 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1171], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 929 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2043, 929) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1168 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2038 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2038]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2038], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1168], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2038]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2044]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2044 THEN 2038 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2038]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2044]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2044, 929)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2038, 929) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 929) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 929 AND "spree_option_types"."id" = 548 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 929) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["option_type_id", 548], ["position", 1], ["product_id", 929], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.393123' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.394233' WHERE "spree_products"."id" = 929  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3225, 1075) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.396823' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.397816' WHERE "spree_products"."id" = 929  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3226, 1076) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 548 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.400534' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.978653' WHERE "spree_products"."id" = 929  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3227, 1077) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 929]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 929 AND "spree_option_types"."id" = 549 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 929) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["option_type_id", 549], ["position", 2], ["product_id", 929], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 549 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 549) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "black_white"], ["option_type_id", 549], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.994759' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:35.996109' WHERE "spree_products"."id" = 929  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1078, 3228) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 549 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 549) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00], ["name", "colour"], ["option_type_id", 549], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:28:35 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.001093' WHERE "spree_products"."id" = 929 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 929], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.002312' WHERE "spree_products"."id" = 929  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3229, 1079) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 929]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 929) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3225 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3226 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3227 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3228 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3229 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 929) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.034604' WHERE "spree_products"."id" = 929  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3225 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.035815' WHERE "spree_products"."id" = 929 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.037093' WHERE "spree_products"."id" = 929  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3226 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.038092' WHERE "spree_products"."id" = 929 Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.042470' WHERE "spree_products"."id" = 929  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3227 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.043841' WHERE "spree_products"."id" = 929 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.046167' WHERE "spree_products"."id" = 929  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3228 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.047346' WHERE "spree_products"."id" = 929 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 929 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.048985' WHERE "spree_products"."id" = 929  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3229 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.740443' WHERE "spree_products"."id" = 929 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 929) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:28:36.743403', "count_on_hand" = 53 WHERE "spree_products"."id" = 929 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 929 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (1016.7ms) commit transaction Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 929 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3224) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 929)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.0ms) rollback transaction Booted Spree using version 1.1.3 SQL (1382.6ms) DELETE FROM "spree_products" SQL (1.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (330.9ms) DELETE FROM "spree_zones"  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (4.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:10.613380' WHERE "spree_products"."id" = 930 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 930], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:10.615808' WHERE "spree_products"."id" = 930  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3230 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:10.617720' WHERE "spree_products"."id" = 930  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 930  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["product_id", nil], ["property_id", 809], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["value", nil]]  (0.8ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:10.770429', "product_id" = 930 WHERE "spree_product_properties"."id" = 979 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 930) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1172], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 930 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2045, 930) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1173 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1173], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2046, 930) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 930) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:37:10 UTC +00:00]] Spree::OptionType Exists (2.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 930 AND "spree_option_types"."id" = 550 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 930) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["option_type_id", 550], ["position", 1], ["product_id", 930], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 550) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "jpeg"], ["option_type_id", 550], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.041768' WHERE "spree_products"."id" = 930 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 930], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.043645' WHERE "spree_products"."id" = 930  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1080, 3231) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 550) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "PDF"], ["option_type_id", 550], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.050365' WHERE "spree_products"."id" = 930 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 930], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.051535' WHERE "spree_products"."id" = 930  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1081, 3232) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 550) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "PNG"], ["option_type_id", 550], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.056247' WHERE "spree_products"."id" = 930 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 930], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.057442' WHERE "spree_products"."id" = 930  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1082, 3233) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 930]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 930) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3231 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3232 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3233 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 930) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.085754' WHERE "spree_products"."id" = 930  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3231 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.087049' WHERE "spree_products"."id" = 930 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.088103' WHERE "spree_products"."id" = 930  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3232 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.089183' WHERE "spree_products"."id" = 930 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 930 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.090455' WHERE "spree_products"."id" = 930  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3233 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.091406' WHERE "spree_products"."id" = 930 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 930) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 930 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:37:11.093514' WHERE "spree_products"."id" = 930 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 930 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (112.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.215652' WHERE "spree_products"."id" = 931 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 931], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.216909' WHERE "spree_products"."id" = 931  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3234 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.218229' WHERE "spree_products"."id" = 931  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 931  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["product_id", nil], ["property_id", 810], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:11.224411', "product_id" = 931 WHERE "spree_product_properties"."id" = 980 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 931) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 931 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2045, 931) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1174 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1174], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2047, 931) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2045 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2045]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2045], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1172], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2045]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2048]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2048 THEN 2045 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2045]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2048]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2048 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2048]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2048], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1172], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2048]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2049]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2049 THEN 2048 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2048]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2049]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2048, 931)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2049, 931) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 931) LIMIT 1 Spree::OptionType Load (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 931 AND "spree_option_types"."id" = 550 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 931) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["option_type_id", 550], ["position", 1], ["product_id", 931], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.259753' WHERE "spree_products"."id" = 931 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 931], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.260922' WHERE "spree_products"."id" = 931  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1080, 3235) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.264324' WHERE "spree_products"."id" = 931 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 931], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.265543' WHERE "spree_products"."id" = 931  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1081, 3236) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.268619' WHERE "spree_products"."id" = 931 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 931], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.269863' WHERE "spree_products"."id" = 931  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1082, 3237) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 931]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 931) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3235 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3236 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3237 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 931) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.470792' WHERE "spree_products"."id" = 931  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3235 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.472153' WHERE "spree_products"."id" = 931 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.473358' WHERE "spree_products"."id" = 931  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3236 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.474153' WHERE "spree_products"."id" = 931 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 931 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.475344' WHERE "spree_products"."id" = 931  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3237 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.476240' WHERE "spree_products"."id" = 931 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 931) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 931 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:37:11.478824' WHERE "spree_products"."id" = 931 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 931 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.485280' WHERE "spree_products"."id" = 932 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.486457' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3238 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.487723' WHERE "spree_products"."id" = 932  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 932  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["product_id", nil], ["property_id", 811], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:11.492925', "product_id" = 932 WHERE "spree_product_properties"."id" = 981 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["product_id", nil], ["property_id", 810], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:11.495919', "product_id" = 932 WHERE "spree_product_properties"."id" = 982 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["product_id", nil], ["property_id", 812], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:11.498688', "product_id" = 932 WHERE "spree_product_properties"."id" = 983 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 932) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1175 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1175], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 932 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2050, 932) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1172 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2045 LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2045]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2045], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1172], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2045]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2051]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2051 THEN 2045 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2045]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2051]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2051, 932)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2045, 932) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 932) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 932 AND "spree_option_types"."id" = 550 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 932) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["option_type_id", 550], ["position", 1], ["product_id", 932], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.520899' WHERE "spree_products"."id" = 932 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.522185' WHERE "spree_products"."id" = 932  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1080, 3239) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.524776' WHERE "spree_products"."id" = 932 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.525926' WHERE "spree_products"."id" = 932  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3240, 1081) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 550 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.528406' WHERE "spree_products"."id" = 932 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (112.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.529764' WHERE "spree_products"."id" = 932  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1082, 3241) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 932]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 932 AND "spree_option_types"."id" = 551 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 932) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["option_type_id", 551], ["position", 2], ["product_id", 932], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 551 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 551) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "black_white"], ["option_type_id", 551], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.653795' WHERE "spree_products"."id" = 932 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.655587' WHERE "spree_products"."id" = 932  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3242, 1083) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 551 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 551) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00], ["name", "colour"], ["option_type_id", 551], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:11 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.659752' WHERE "spree_products"."id" = 932 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 932], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.660928' WHERE "spree_products"."id" = 932  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3243, 1084) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 932]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 932) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3239 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3240 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3241 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3242 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3243 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 932) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.693928' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3239 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.695016' WHERE "spree_products"."id" = 932 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.696411' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3240 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.697118' WHERE "spree_products"."id" = 932 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.698164' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3241 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.699349' WHERE "spree_products"."id" = 932 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.700681' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3242 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.701516' WHERE "spree_products"."id" = 932 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 932 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.702480' WHERE "spree_products"."id" = 932  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3243 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:11.703325' WHERE "spree_products"."id" = 932 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 932) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:37:11.707361' WHERE "spree_products"."id" = 932 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 932 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (117.6ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 932 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3238) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 932)) Excel Loader processing 0 rows  (0.1ms) begin transaction ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:48:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg]  (0.1ms) rollback transaction SQL (4.6ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (129.7ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (428.5ms) DELETE FROM "spree_variants" SQL (343.1ms) DELETE FROM "spree_taxons" SQL (340.2ms) DELETE FROM "spree_taxonomies" SQL (345.8ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.3ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.7ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.533468' WHERE "spree_products"."id" = 933 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 933], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.554708' WHERE "spree_products"."id" = 933  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3244 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.559760' WHERE "spree_products"."id" = 933  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 933  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["product_id", nil], ["property_id", 813], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:13.567761', "product_id" = 933 WHERE "spree_product_properties"."id" = 984 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 933) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1176], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 933 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (933, 2052) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1177 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1177], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (933, 2053) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 933) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::OptionType Exists (1.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 933 AND "spree_option_types"."id" = 552 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 933) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["option_type_id", 552], ["position", 1], ["product_id", 933], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 552) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "jpeg"], ["option_type_id", 552], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.817705' WHERE "spree_products"."id" = 933 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 933], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.819141' WHERE "spree_products"."id" = 933  (0.3ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1085, 3245) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 552) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "PDF"], ["option_type_id", 552], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.824352' WHERE "spree_products"."id" = 933 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 933], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.825765' WHERE "spree_products"."id" = 933  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1086, 3246) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 552) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00], ["name", "PNG"], ["option_type_id", 552], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.829959' WHERE "spree_products"."id" = 933 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 933], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.831410' WHERE "spree_products"."id" = 933  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3247, 1087) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 933]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 933) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3245 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3246 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3247 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 933) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.842911' WHERE "spree_products"."id" = 933  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3245 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.843959' WHERE "spree_products"."id" = 933 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.845383' WHERE "spree_products"."id" = 933  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3246 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:13.846338' WHERE "spree_products"."id" = 933 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 933 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.000962' WHERE "spree_products"."id" = 933  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3247 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.002548' WHERE "spree_products"."id" = 933 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 933) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 933 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:37:14.006703' WHERE "spree_products"."id" = 933 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 933 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.018540' WHERE "spree_products"."id" = 934 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 934], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.019890' WHERE "spree_products"."id" = 934  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3248 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.021362' WHERE "spree_products"."id" = 934  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 934  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["product_id", nil], ["property_id", 814], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:14.027962', "product_id" = 934 WHERE "spree_product_properties"."id" = 985 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 934) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 934 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (934, 2052) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1178 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1178], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (934, 2054) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2052 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2052]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2052], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1176], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (2.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2052]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2055]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2055 THEN 2052 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2052]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2055]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2055 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2055]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2055], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1176], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2055]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2056]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2056 THEN 2055 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2055]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2056]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (934, 2055)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (934, 2056) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 934) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (7.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 934 AND "spree_option_types"."id" = 552 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 934) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["option_type_id", 552], ["position", 1], ["product_id", 934], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.078060' WHERE "spree_products"."id" = 934 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 934], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.087155' WHERE "spree_products"."id" = 934  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3249, 1085) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.090666' WHERE "spree_products"."id" = 934 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 934], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.091777' WHERE "spree_products"."id" = 934  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1086, 3250) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.094455' WHERE "spree_products"."id" = 934 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 934], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.095537' WHERE "spree_products"."id" = 934  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1087, 3251) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 934]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 934) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3249 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3250 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3251 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 934) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.112774' WHERE "spree_products"."id" = 934  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3249 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.113748' WHERE "spree_products"."id" = 934 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.114894' WHERE "spree_products"."id" = 934  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3250 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.115746' WHERE "spree_products"."id" = 934 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 934 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.116923' WHERE "spree_products"."id" = 934  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3251 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.117746' WHERE "spree_products"."id" = 934 Spree::Product Exists (132.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 934) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 934 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:37:14.253295' WHERE "spree_products"."id" = 934 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 934 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.260438' WHERE "spree_products"."id" = 935 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.261750' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3252 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.262965' WHERE "spree_products"."id" = 935  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 935  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["product_id", nil], ["property_id", 815], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:14.268722', "product_id" = 935 WHERE "spree_product_properties"."id" = 986 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["product_id", nil], ["property_id", 814], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["value", "Example free value"]]  (0.0ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:14.270549', "product_id" = 935 WHERE "spree_product_properties"."id" = 987 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["product_id", nil], ["property_id", 816], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:37:14.273852', "product_id" = 935 WHERE "spree_product_properties"."id" = 988 Created New ProductProperty # Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 935) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1179 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1179], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 935 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (935, 2057) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1176 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2052 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2052]] SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2052], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1176], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2052]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2058]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2058 THEN 2052 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2052]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2058]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (935, 2058)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (935, 2052) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 935) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 935 AND "spree_option_types"."id" = 552 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 935) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["option_type_id", 552], ["position", 1], ["product_id", 935], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.298501' WHERE "spree_products"."id" = 935 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.299583' WHERE "spree_products"."id" = 935  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3253, 1085) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.302050' WHERE "spree_products"."id" = 935 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.303178' WHERE "spree_products"."id" = 935  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3254, 1086) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 552 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.305507' WHERE "spree_products"."id" = 935 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.306576' WHERE "spree_products"."id" = 935  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1087, 3255) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 935]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 935 AND "spree_option_types"."id" = 553 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 935) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["option_type_id", 553], ["position", 2], ["product_id", 935], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 553 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 553) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "black_white"], ["option_type_id", 553], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.319714' WHERE "spree_products"."id" = 935 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.320840' WHERE "spree_products"."id" = 935  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1088, 3256) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 553 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 553) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00], ["name", "colour"], ["option_type_id", 553], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:37:14 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.325391' WHERE "spree_products"."id" = 935 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 935], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.326472' WHERE "spree_products"."id" = 935  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1089, 3257) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 935]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 935) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3253 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3254 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3255 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3256 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3257 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 935) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.368406' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3253 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.369707' WHERE "spree_products"."id" = 935 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.370985' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3254 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.371967' WHERE "spree_products"."id" = 935 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.508379' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3255 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.511774' WHERE "spree_products"."id" = 935 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.513279' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3256 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.514157' WHERE "spree_products"."id" = 935 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 935 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.610970' WHERE "spree_products"."id" = 935  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3257 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:37:14.612154' WHERE "spree_products"."id" = 935 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 935) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:37:14.615277' WHERE "spree_products"."id" = 935 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 935 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (364.6ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 935 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3252) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 935)) Excel Loader processing 0 rows  (0.1ms) begin transaction ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:48:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:115", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg]  (0.0ms) rollback transaction Booted Spree using version 1.1.3 SQL (459.9ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (114.1ms) DELETE FROM "spree_option_values" SQL (2.8ms) DELETE FROM "spree_properties" SQL (2.7ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.491950' WHERE "spree_products"."id" = 936 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 936], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.494161' WHERE "spree_products"."id" = 936  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3258 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.496593' WHERE "spree_products"."id" = 936  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 936  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["product_id", nil], ["property_id", 817], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:22.514890', "product_id" = 936 WHERE "spree_product_properties"."id" = 989 Created New ProductProperty # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 936) LIMIT 1 Spree::Taxonomy Load (1.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1180], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 936 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2059, 936) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1181 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1181], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2060, 936) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 936) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 936 AND "spree_option_types"."id" = 554 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 936) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["option_type_id", 554], ["position", 1], ["product_id", 936], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 554) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "jpeg"], ["option_type_id", 554], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.886898' WHERE "spree_products"."id" = 936 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 936], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.887956' WHERE "spree_products"."id" = 936  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3259, 1090) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 554) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "PDF"], ["option_type_id", 554], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.893956' WHERE "spree_products"."id" = 936 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 936], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.895179' WHERE "spree_products"."id" = 936  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1091, 3260) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 554) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "PNG"], ["option_type_id", 554], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.899406' WHERE "spree_products"."id" = 936 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 936], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.900463' WHERE "spree_products"."id" = 936  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1092, 3261) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 936]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 936) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3259 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3260 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3261 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 936) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.927830' WHERE "spree_products"."id" = 936  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3259 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.928877' WHERE "spree_products"."id" = 936 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.930243' WHERE "spree_products"."id" = 936  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3260 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.931141' WHERE "spree_products"."id" = 936 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 936 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.932140' WHERE "spree_products"."id" = 936  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3261 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.932894' WHERE "spree_products"."id" = 936 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 936) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 936 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:38:22.935310' WHERE "spree_products"."id" = 936 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 936 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (3.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.944191' WHERE "spree_products"."id" = 937 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 937], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.945264' WHERE "spree_products"."id" = 937  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3262 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.946649' WHERE "spree_products"."id" = 937  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 937  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["product_id", nil], ["property_id", 818], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:22.951911', "product_id" = 937 WHERE "spree_product_properties"."id" = 990 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 937) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 937 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (937, 2059) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1182 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1182], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (937, 2061) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2059 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2059]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2059], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1180], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2059]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2062]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2062 THEN 2059 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2059]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2062]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2062 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2062]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2062], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1180], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2062]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2063]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2063 THEN 2062 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2062]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2063]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (937, 2062)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (937, 2063) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 937) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 937 AND "spree_option_types"."id" = 554 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 937) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00], ["option_type_id", 554], ["position", 1], ["product_id", 937], ["updated_at", Mon, 01 Oct 2012 14:38:22 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.984471' WHERE "spree_products"."id" = 937 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 937], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:22.985716' WHERE "spree_products"."id" = 937  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3263, 1090) Spree::OptionValue Load (119.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.108660' WHERE "spree_products"."id" = 937 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 937], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.110142' WHERE "spree_products"."id" = 937  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3264, 1091) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.112877' WHERE "spree_products"."id" = 937 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 937], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.114266' WHERE "spree_products"."id" = 937  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1092, 3265) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 937]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 937) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3263 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3264 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3265 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 937) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.207953' WHERE "spree_products"."id" = 937  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3263 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.209530' WHERE "spree_products"."id" = 937 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.331135' WHERE "spree_products"."id" = 937  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3264 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.332135' WHERE "spree_products"."id" = 937 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 937 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.333600' WHERE "spree_products"."id" = 937  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3265 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.334487' WHERE "spree_products"."id" = 937 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 937) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 937 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:38:23.337416' WHERE "spree_products"."id" = 937 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 937 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.344356' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.345386' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3266 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.346492' WHERE "spree_products"."id" = 938  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 938  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["product_id", nil], ["property_id", 819], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:23.352082', "product_id" = 938 WHERE "spree_product_properties"."id" = 991 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["product_id", nil], ["property_id", 818], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:23.355081', "product_id" = 938 WHERE "spree_product_properties"."id" = 992 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["product_id", nil], ["property_id", 820], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:23.357882', "product_id" = 938 WHERE "spree_product_properties"."id" = 993 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 938) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1183 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1183], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 938 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (938, 2064) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1180 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2059 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2059]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2059], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1180], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2059]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2065]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2065 THEN 2059 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2059]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2065]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (938, 2065)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (938, 2059) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 938) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 938 AND "spree_option_types"."id" = 554 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 938) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["option_type_id", 554], ["position", 1], ["product_id", 938], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.382504' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.383864' WHERE "spree_products"."id" = 938  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1090, 3267) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.386572' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.387884' WHERE "spree_products"."id" = 938  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1091, 3268) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 554 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.390347' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.391385' WHERE "spree_products"."id" = 938  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1092, 3269) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 938]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 938 AND "spree_option_types"."id" = 555 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 938) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["option_type_id", 555], ["position", 2], ["product_id", 938], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 555 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 555) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "black_white"], ["option_type_id", 555], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.403844' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.406135' WHERE "spree_products"."id" = 938  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1093, 3270) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 555 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 555) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00], ["name", "colour"], ["option_type_id", 555], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:23 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.410650' WHERE "spree_products"."id" = 938 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 938], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.411879' WHERE "spree_products"."id" = 938  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3271, 1094) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 938]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 938) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3267 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3268 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3269 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3270 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3271 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 938) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.444930' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3267 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.446068' WHERE "spree_products"."id" = 938 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.447300' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3268 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.501949' WHERE "spree_products"."id" = 938 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.503543' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3269 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.504485' WHERE "spree_products"."id" = 938 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.505496' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3270 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.506558' WHERE "spree_products"."id" = 938 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 938 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.507662' WHERE "spree_products"."id" = 938  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3271 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:23.508568' WHERE "spree_products"."id" = 938 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 938) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:38:23.511244' WHERE "spree_products"."id" = 938 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 938 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (298.5ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 938 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3266) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 938)) Excel Loader processing 0 rows  (0.1ms) begin transaction ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:52:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg]  (0.2ms) rollback transaction SQL (143.6ms) DELETE FROM "spree_products" SQL (1.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (317.4ms) DELETE FROM "spree_option_types" SQL (331.0ms) DELETE FROM "spree_option_values" SQL (247.2ms) DELETE FROM "spree_properties" SQL (134.1ms) DELETE FROM "spree_product_properties" SQL (73.1ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.8ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.161520' WHERE "spree_products"."id" = 939 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 939], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.162750' WHERE "spree_products"."id" = 939  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3272 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.163989' WHERE "spree_products"."id" = 939  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 939  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["product_id", nil], ["property_id", 821], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:25.193284', "product_id" = 939 WHERE "spree_product_properties"."id" = 994 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 939) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1184], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 939 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2066, 939) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1185 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1185], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2067, 939) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 939) LIMIT 1 Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 939 AND "spree_option_types"."id" = 556 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 939) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["option_type_id", 556], ["position", 1], ["product_id", 939], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 556) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "jpeg"], ["option_type_id", 556], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.390304' WHERE "spree_products"."id" = 939 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 939], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.391317' WHERE "spree_products"."id" = 939  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3273, 1095) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 556) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "PDF"], ["option_type_id", 556], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.397808' WHERE "spree_products"."id" = 939 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 939], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.398826' WHERE "spree_products"."id" = 939  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3274, 1096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 556) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "PNG"], ["option_type_id", 556], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.402979' WHERE "spree_products"."id" = 939 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 939], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.404166' WHERE "spree_products"."id" = 939  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3275, 1097) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 939]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 939) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3273 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3274 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3275 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 939) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.415612' WHERE "spree_products"."id" = 939  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3273 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.416791' WHERE "spree_products"."id" = 939 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.418366' WHERE "spree_products"."id" = 939  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3274 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.419186' WHERE "spree_products"."id" = 939 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 939 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.420270' WHERE "spree_products"."id" = 939  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3275 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.420936' WHERE "spree_products"."id" = 939 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 939) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 939 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:38:25.424286' WHERE "spree_products"."id" = 939 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 939 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.430993' WHERE "spree_products"."id" = 940 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 940], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.432231' WHERE "spree_products"."id" = 940  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3276 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.433443' WHERE "spree_products"."id" = 940  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 940  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["product_id", nil], ["property_id", 822], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:25.439139', "product_id" = 940 WHERE "spree_product_properties"."id" = 995 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 940) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 940 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2066, 940) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1186 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1186], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2068, 940) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2066 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2066]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2066], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1184], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2066]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2069]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2069 THEN 2066 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2066]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2069]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2069 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2069]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2069], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1184], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2069]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2070]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2070 THEN 2069 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2069]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2070]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2069, 940)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2070, 940) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 940) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 940 AND "spree_option_types"."id" = 556 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 940) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["option_type_id", 556], ["position", 1], ["product_id", 940], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.586450' WHERE "spree_products"."id" = 940 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 940], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.587761' WHERE "spree_products"."id" = 940  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1095, 3277) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.590056' WHERE "spree_products"."id" = 940 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 940], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.590978' WHERE "spree_products"."id" = 940  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1096, 3278) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.593499' WHERE "spree_products"."id" = 940 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 940], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.594287' WHERE "spree_products"."id" = 940  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3279, 1097) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 940]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 940) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3277 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (2.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3278 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3279 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 940) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.609122' WHERE "spree_products"."id" = 940  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3277 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.610296' WHERE "spree_products"."id" = 940 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.611379' WHERE "spree_products"."id" = 940  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3278 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.612208' WHERE "spree_products"."id" = 940 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 940 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.613057' WHERE "spree_products"."id" = 940  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3279 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.613941' WHERE "spree_products"."id" = 940 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 940) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 940 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:38:25.616996' WHERE "spree_products"."id" = 940 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 940 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.622663' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.624200' WHERE "spree_products"."id" = 941  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3280 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.625752' WHERE "spree_products"."id" = 941  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 941  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["product_id", nil], ["property_id", 823], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:25.630771', "product_id" = 941 WHERE "spree_product_properties"."id" = 996 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["product_id", nil], ["property_id", 822], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:25.632996', "product_id" = 941 WHERE "spree_product_properties"."id" = 997 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["product_id", nil], ["property_id", 824], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:38:25.635996', "product_id" = 941 WHERE "spree_product_properties"."id" = 998 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 941) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1187 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1187], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 941 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2071, 941) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1184 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2066 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2066]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2066], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1184], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2066]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2072]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2072 THEN 2066 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2066]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2072]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2072, 941)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2066, 941) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 941) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 941 AND "spree_option_types"."id" = 556 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 941) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["option_type_id", 556], ["position", 1], ["product_id", 941], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.657471' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.659173' WHERE "spree_products"."id" = 941  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1095, 3281) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.661370' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.662287' WHERE "spree_products"."id" = 941  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1096, 3282) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 556 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.664594' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.665819' WHERE "spree_products"."id" = 941  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3283, 1097) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 941]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 941 AND "spree_option_types"."id" = 557 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 941) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["option_type_id", 557], ["position", 2], ["product_id", 941], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 557 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (2.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 557) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "black_white"], ["option_type_id", 557], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.819311' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.820669' WHERE "spree_products"."id" = 941  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3284, 1098) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 557 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 557) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00], ["name", "colour"], ["option_type_id", 557], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:38:25 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.826704' WHERE "spree_products"."id" = 941 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 941], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.827694' WHERE "spree_products"."id" = 941  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3285, 1099) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 941]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 941) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3281 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3282 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3283 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3284 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3285 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 941) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.842738' WHERE "spree_products"."id" = 941  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3281 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.843999' WHERE "spree_products"."id" = 941 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.845503' WHERE "spree_products"."id" = 941  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3282 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.846508' WHERE "spree_products"."id" = 941 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.847819' WHERE "spree_products"."id" = 941  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3283 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.848862' WHERE "spree_products"."id" = 941 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.850071' WHERE "spree_products"."id" = 941  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3284 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.850908' WHERE "spree_products"."id" = 941 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 941 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:25.855953' WHERE "spree_products"."id" = 941  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3285 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:38:26.063426' WHERE "spree_products"."id" = 941 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 941) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:38:26.066160' WHERE "spree_products"."id" = 941 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 941 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (113.4ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 941 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3280) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 941)) Excel Loader processing 0 rows  (0.2ms) begin transaction ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:52:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:115", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg]  (0.0ms) rollback transaction Booted Spree using version 1.1.3 SQL (1482.3ms) DELETE FROM "spree_products" SQL (1.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.6ms) DELETE FROM "spree_option_types" SQL (396.0ms) DELETE FROM "spree_option_values" SQL (336.7ms) DELETE FROM "spree_properties" SQL (349.0ms) DELETE FROM "spree_product_properties" SQL (125.4ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.7ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.550548' WHERE "spree_products"."id" = 942 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 942], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.552604' WHERE "spree_products"."id" = 942  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3286 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.666034' WHERE "spree_products"."id" = 942  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 942  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Created New Property # SQL (0.6ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["product_id", nil], ["property_id", 825], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:12.684428', "product_id" = 942 WHERE "spree_product_properties"."id" = 999 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 942) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1188], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 942 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (942, 2073) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1189 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1189], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (942, 2074) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 942) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::OptionType Exists (1.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 942 AND "spree_option_types"."id" = 558 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 942) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["option_type_id", 558], ["position", 1], ["product_id", 942], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 558) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "jpeg"], ["option_type_id", 558], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.954922' WHERE "spree_products"."id" = 942 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 942], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.955911' WHERE "spree_products"."id" = 942  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1100, 3287) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 558) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "PDF"], ["option_type_id", 558], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.961272' WHERE "spree_products"."id" = 942 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 942], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.962610' WHERE "spree_products"."id" = 942  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1101, 3288) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 558) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00], ["name", "PNG"], ["option_type_id", 558], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.966837' WHERE "spree_products"."id" = 942 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 942], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:12.968042' WHERE "spree_products"."id" = 942  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1102, 3289) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 942]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 942) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3287 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3288 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3289 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 942) LIMIT 1  (0.5ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.108612' WHERE "spree_products"."id" = 942  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3287 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.111379' WHERE "spree_products"."id" = 942 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.113670' WHERE "spree_products"."id" = 942  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3288 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.114430' WHERE "spree_products"."id" = 942 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 942 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.115699' WHERE "spree_products"."id" = 942  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3289 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.116612' WHERE "spree_products"."id" = 942 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 942) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 942 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:47:13.118919' WHERE "spree_products"."id" = 942 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 942 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.125886' WHERE "spree_products"."id" = 943 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 943], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.127016' WHERE "spree_products"."id" = 943  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3290 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.128293' WHERE "spree_products"."id" = 943  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 943  (0.8ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["product_id", nil], ["property_id", 826], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:13.135463', "product_id" = 943 WHERE "spree_product_properties"."id" = 1000 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 943) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 943 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2073, 943) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1190 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1190], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2075, 943) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2073 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2073]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2073], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1188], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2073]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2076]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2076 THEN 2073 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2073]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2076]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2076 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2076]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2076], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1188], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2076]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2077]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2077 THEN 2076 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2076]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2077]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2076, 943)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2077, 943) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 943) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 943 AND "spree_option_types"."id" = 558 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 943) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["option_type_id", 558], ["position", 1], ["product_id", 943], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.171463' WHERE "spree_products"."id" = 943 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 943], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.173043' WHERE "spree_products"."id" = 943  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3291, 1100) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.176101' WHERE "spree_products"."id" = 943 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 943], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.177188' WHERE "spree_products"."id" = 943  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1101, 3292) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.180353' WHERE "spree_products"."id" = 943 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 943], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.181613' WHERE "spree_products"."id" = 943  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1102, 3293) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 943]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 943) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3291 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3292 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3293 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 943) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.544288' WHERE "spree_products"."id" = 943  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3291 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.545818' WHERE "spree_products"."id" = 943 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.547088' WHERE "spree_products"."id" = 943  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3292 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.547862' WHERE "spree_products"."id" = 943 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 943 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.549143' WHERE "spree_products"."id" = 943  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3293 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.550327' WHERE "spree_products"."id" = 943 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 943) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 943 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:47:13.552556' WHERE "spree_products"."id" = 943 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 943 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.560239' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.561589' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3294 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.562935' WHERE "spree_products"."id" = 944  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 944  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["product_id", nil], ["property_id", 827], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:13.569385', "product_id" = 944 WHERE "spree_product_properties"."id" = 1001 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["product_id", nil], ["property_id", 826], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:13.571618', "product_id" = 944 WHERE "spree_product_properties"."id" = 1002 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["product_id", nil], ["property_id", 828], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:13.575554', "product_id" = 944 WHERE "spree_product_properties"."id" = 1003 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 944) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1191 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1191], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 944 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (944, 2078) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1188 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2073 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2073]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2073], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1188], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2073]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2079]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2079 THEN 2073 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2073]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2079]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (944, 2079)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (944, 2073) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 944) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 944 AND "spree_option_types"."id" = 558 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 944) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["option_type_id", 558], ["position", 1], ["product_id", 944], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.601865' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.603012' WHERE "spree_products"."id" = 944  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1100, 3295) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.606157' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.607242' WHERE "spree_products"."id" = 944  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1101, 3296) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 558 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.610173' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.611308' WHERE "spree_products"."id" = 944  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1102, 3297) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 944]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 944 AND "spree_option_types"."id" = 559 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 944) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["option_type_id", 559], ["position", 2], ["product_id", 944], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 559 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 559) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "black_white"], ["option_type_id", 559], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.623310' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.625023' WHERE "spree_products"."id" = 944  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3298, 1103) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 559 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 559) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00], ["name", "colour"], ["option_type_id", 559], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:13 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.630107' WHERE "spree_products"."id" = 944 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 944], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.631260' WHERE "spree_products"."id" = 944  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1104, 3299) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 944]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (24.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 944) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3295 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3296 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3297 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3298 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3299 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 944) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.791621' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3295 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.792790' WHERE "spree_products"."id" = 944 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.793805' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3296 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.794772' WHERE "spree_products"."id" = 944 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.796208' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3297 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.797272' WHERE "spree_products"."id" = 944 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.798365' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3298 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.799415' WHERE "spree_products"."id" = 944 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 944 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.800482' WHERE "spree_products"."id" = 944  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3299 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:13.801253' WHERE "spree_products"."id" = 944 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 944) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:47:13.803782' WHERE "spree_products"."id" = 944 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 944 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (478.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 944 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3294) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 944)) SQL (8.0ms) DELETE FROM "spree_products" SQL (0.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (27.1ms) DELETE FROM "spree_option_types" SQL (121.3ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (2.7ms) DELETE FROM "spree_product_properties" SQL (2.7ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (337.8ms) DELETE FROM "spree_taxonomies" SQL (432.2ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.280765' WHERE "spree_products"."id" = 945 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 945], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.282125' WHERE "spree_products"."id" = 945  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3300 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.306460' WHERE "spree_products"."id" = 945  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 945  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["product_id", nil], ["property_id", 829], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:15.422912', "product_id" = 945 WHERE "spree_product_properties"."id" = 1004 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 945) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1192], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 945 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (945, 2080) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1193 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1193], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (945, 2081) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 945) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::OptionType Exists (1.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 945 AND "spree_option_types"."id" = 560 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 945) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["option_type_id", 560], ["position", 1], ["product_id", 945], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 560) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "jpeg"], ["option_type_id", 560], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.458552' WHERE "spree_products"."id" = 945 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 945], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.459839' WHERE "spree_products"."id" = 945  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1105, 3301) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 560) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "PDF"], ["option_type_id", 560], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.464533' WHERE "spree_products"."id" = 945 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 945], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.466044' WHERE "spree_products"."id" = 945  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3302, 1106) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 560) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "PNG"], ["option_type_id", 560], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.499070' WHERE "spree_products"."id" = 945 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 945], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.500417' WHERE "spree_products"."id" = 945  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1107, 3303) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 945]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 945) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3301 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3302 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3303 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 945) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.515475' WHERE "spree_products"."id" = 945  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3301 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.516615' WHERE "spree_products"."id" = 945 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.873455' WHERE "spree_products"."id" = 945  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3302 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.874582' WHERE "spree_products"."id" = 945 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 945 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.875593' WHERE "spree_products"."id" = 945  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3303 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.876609' WHERE "spree_products"."id" = 945 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 945) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 945 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:47:15.878484' WHERE "spree_products"."id" = 945 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 945 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.886959' WHERE "spree_products"."id" = 946 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 946], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.888360' WHERE "spree_products"."id" = 946  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3304 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.889412' WHERE "spree_products"."id" = 946  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 946  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["product_id", nil], ["property_id", 830], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:15.895040', "product_id" = 946 WHERE "spree_product_properties"."id" = 1005 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 946) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 946 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2080, 946) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1194 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1194], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2082, 946) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2080 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2080]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2080], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1192], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2080]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2083]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2083 THEN 2080 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2080]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2083]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2083 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2083]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2083], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1192], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2083]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2084]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2084 THEN 2083 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2083]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2084]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2083, 946)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2084, 946) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 946) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 946 AND "spree_option_types"."id" = 560 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 946) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["option_type_id", 560], ["position", 1], ["product_id", 946], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.924269' WHERE "spree_products"."id" = 946 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 946], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.925419' WHERE "spree_products"."id" = 946  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3305, 1105) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.927759' WHERE "spree_products"."id" = 946 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 946], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.928885' WHERE "spree_products"."id" = 946  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3306, 1106) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.931106' WHERE "spree_products"."id" = 946 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 946], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.932193' WHERE "spree_products"."id" = 946  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1107, 3307) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 946]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 946) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3305 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3306 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3307 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 946) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.944026' WHERE "spree_products"."id" = 946  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3305 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.944957' WHERE "spree_products"."id" = 946 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.946120' WHERE "spree_products"."id" = 946  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3306 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.946867' WHERE "spree_products"."id" = 946 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 946 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.947907' WHERE "spree_products"."id" = 946  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3307 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.948869' WHERE "spree_products"."id" = 946 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 946) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 946 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:47:15.951653' WHERE "spree_products"."id" = 946 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 946 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.959051' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.960020' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3308 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:15.961331' WHERE "spree_products"."id" = 947  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 947  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["product_id", nil], ["property_id", 831], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:15.967373', "product_id" = 947 WHERE "spree_product_properties"."id" = 1006 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["product_id", nil], ["property_id", 830], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:15.969653', "product_id" = 947 WHERE "spree_product_properties"."id" = 1007 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["product_id", nil], ["property_id", 832], ["updated_at", Mon, 01 Oct 2012 14:47:15 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:47:16.096655', "product_id" = 947 WHERE "spree_product_properties"."id" = 1008 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 947) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1195 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1195], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 947 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2085, 947) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1192 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2080 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2080]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2080], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1192], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2080]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2086]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2086 THEN 2080 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2080]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2086]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2086, 947)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2080, 947) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 947) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 947 AND "spree_option_types"."id" = 560 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 947) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["option_type_id", 560], ["position", 1], ["product_id", 947], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.120426' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.121655' WHERE "spree_products"."id" = 947  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3309, 1105) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.123877' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.124928' WHERE "spree_products"."id" = 947  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1106, 3310) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 560 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.127009' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.127940' WHERE "spree_products"."id" = 947  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1107, 3311) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 947]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 947 AND "spree_option_types"."id" = 561 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 947) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["option_type_id", 561], ["position", 2], ["product_id", 947], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 561 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 561) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["name", "black_white"], ["option_type_id", 561], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.139646' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.140655' WHERE "spree_products"."id" = 947  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1108, 3312) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 561 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 561) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00], ["name", "colour"], ["option_type_id", 561], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:47:16 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.145607' WHERE "spree_products"."id" = 947 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 947], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.146855' WHERE "spree_products"."id" = 947  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1109, 3313) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 947]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 947) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3309 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3310 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3311 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3312 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3313 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 947) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.184120' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3309 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.185320' WHERE "spree_products"."id" = 947 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.186976' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3310 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.187921' WHERE "spree_products"."id" = 947 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.189310' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3311 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.190295' WHERE "spree_products"."id" = 947 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.191396' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3312 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.192600' WHERE "spree_products"."id" = 947 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 947 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.193718' WHERE "spree_products"."id" = 947  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3313 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:47:16.194494' WHERE "spree_products"."id" = 947 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 947) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:47:16.196506' WHERE "spree_products"."id" = 947 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 947 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (367.8ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 947 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3308) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 947)) Booted Spree using version 1.1.3 SQL (4264.5ms) DELETE FROM "spree_products" SQL (2.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (467.2ms) DELETE FROM "spree_option_types" SQL (109.2ms) DELETE FROM "spree_option_values" SQL (2.9ms) DELETE FROM "spree_properties" SQL (3.3ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (4.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.180531' WHERE "spree_products"."id" = 948 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 948], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.182967' WHERE "spree_products"."id" = 948  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3314 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.185681' WHERE "spree_products"."id" = 948  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 948  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Created New Property # SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["product_id", nil], ["property_id", 833], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:03.207068', "product_id" = 948 WHERE "spree_product_properties"."id" = 1009 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 948) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1196], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 948 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (948, 2087) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1197 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1197], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (948, 2088) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 948) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::OptionType Exists (1.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 948 AND "spree_option_types"."id" = 562 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 948) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["option_type_id", 562], ["position", 1], ["product_id", 948], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::OptionValue Load (19.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 562) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "jpeg"], ["option_type_id", 562], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.480373' WHERE "spree_products"."id" = 948 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 948], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.481537' WHERE "spree_products"."id" = 948  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3315, 1110) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 562) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "PDF"], ["option_type_id", 562], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.487292' WHERE "spree_products"."id" = 948 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 948], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.488386' WHERE "spree_products"."id" = 948  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3316, 1111) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 562) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "PNG"], ["option_type_id", 562], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.492683' WHERE "spree_products"."id" = 948 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 948], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.493855' WHERE "spree_products"."id" = 948  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1112, 3317) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 948]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 948) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3315 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3316 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3317 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 948) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.631649' WHERE "spree_products"."id" = 948  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3315 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.632821' WHERE "spree_products"."id" = 948 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.634215' WHERE "spree_products"."id" = 948  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3316 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.635155' WHERE "spree_products"."id" = 948 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 948 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.636996' WHERE "spree_products"."id" = 948  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3317 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.637871' WHERE "spree_products"."id" = 948 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 948) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 948 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.640435', "count_on_hand" = 25 WHERE "spree_products"."id" = 948 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 948 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.647375' WHERE "spree_products"."id" = 949 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 949], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.648456' WHERE "spree_products"."id" = 949  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3318 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.649672' WHERE "spree_products"."id" = 949  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 949  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["product_id", nil], ["property_id", 834], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:03.655915', "product_id" = 949 WHERE "spree_product_properties"."id" = 1010 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 949) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 949 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (949, 2087) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1198 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1198], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (949, 2089) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" = 2087 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2087]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2087], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1196], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2087]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2090]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2090 THEN 2087 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2087]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2090]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" = 2090 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2090]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2090], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1196], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2090]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2091]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2091 THEN 2090 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2090]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2091]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (949, 2090)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (949, 2091) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 949) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 949 AND "spree_option_types"."id" = 562 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 949) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["option_type_id", 562], ["position", 1], ["product_id", 949], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.689978' WHERE "spree_products"."id" = 949 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 949], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.691339' WHERE "spree_products"."id" = 949  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1110, 3319) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.693926' WHERE "spree_products"."id" = 949 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 949], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.694987' WHERE "spree_products"."id" = 949  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3320, 1111) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.697611' WHERE "spree_products"."id" = 949 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 949], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.698663' WHERE "spree_products"."id" = 949  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1112, 3321) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 949]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 949) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3319 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3320 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3321 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 949) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.900360' WHERE "spree_products"."id" = 949  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3319 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.901376' WHERE "spree_products"."id" = 949 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.902515' WHERE "spree_products"."id" = 949  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3320 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.903375' WHERE "spree_products"."id" = 949 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 949 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.904433' WHERE "spree_products"."id" = 949  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3321 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.905226' WHERE "spree_products"."id" = 949 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 949) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 949 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.907601', "count_on_hand" = 11 WHERE "spree_products"."id" = 949 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 949 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.913778' WHERE "spree_products"."id" = 950 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.914793' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3322 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:03.915956' WHERE "spree_products"."id" = 950  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 950  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["product_id", nil], ["property_id", 835], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:03.921579', "product_id" = 950 WHERE "spree_product_properties"."id" = 1011 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["product_id", nil], ["property_id", 834], ["updated_at", Mon, 01 Oct 2012 14:50:03 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:03.924022', "product_id" = 950 WHERE "spree_product_properties"."id" = 1012 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["product_id", nil], ["property_id", 836], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:04.045951', "product_id" = 950 WHERE "spree_product_properties"."id" = 1013 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 950) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1199 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1199], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 950 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (950, 2092) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1196 AND "spree_taxons"."parent_id" = 2087 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2087]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2087], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1196], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2087]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2093]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2093 THEN 2087 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2087]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2093]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (950, 2093)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (950, 2087) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 950) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 950 AND "spree_option_types"."id" = 562 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 950) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["option_type_id", 562], ["position", 1], ["product_id", 950], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.071149' WHERE "spree_products"."id" = 950 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.072282' WHERE "spree_products"."id" = 950  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1110, 3323) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.074515' WHERE "spree_products"."id" = 950 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.076249' WHERE "spree_products"."id" = 950  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3324, 1111) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 562 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.078484' WHERE "spree_products"."id" = 950 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.079472' WHERE "spree_products"."id" = 950  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3325, 1112) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 950]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 950 AND "spree_option_types"."id" = 563 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 950) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["option_type_id", 563], ["position", 2], ["product_id", 950], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 563 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 563) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["name", "black_white"], ["option_type_id", 563], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.092644' WHERE "spree_products"."id" = 950 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.093784' WHERE "spree_products"."id" = 950  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3326, 1113) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 563 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 563) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00], ["name", "colour"], ["option_type_id", 563], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:04 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.098600' WHERE "spree_products"."id" = 950 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 950], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.099825' WHERE "spree_products"."id" = 950  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1114, 3327) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 950]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 950) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3323 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3324 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3325 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3326 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3327 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 950) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.139288' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3323 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.140313' WHERE "spree_products"."id" = 950 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.141361' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3324 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.142120' WHERE "spree_products"."id" = 950 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.143693' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3325 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.144696' WHERE "spree_products"."id" = 950 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.145967' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3326 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.146795' WHERE "spree_products"."id" = 950 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 950 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.148165' WHERE "spree_products"."id" = 950  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3327 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.148976' WHERE "spree_products"."id" = 950 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 950) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:04.151735', "count_on_hand" = 53 WHERE "spree_products"."id" = 950 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 950 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (468.4ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 950 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3322) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 950)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.2ms) rollback transaction SQL (155.7ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (7.7ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (114.3ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (2.5ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (124.1ms) DELETE FROM "spree_taxonomies" SQL (3.8ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.151071' WHERE "spree_products"."id" = 951 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 951], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.152747' WHERE "spree_products"."id" = 951  (0.4ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3328 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.154731' WHERE "spree_products"."id" = 951  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 951  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["product_id", nil], ["property_id", 837], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:05.293282', "product_id" = 951 WHERE "spree_product_properties"."id" = 1014 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 951) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1200], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 951 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2094, 951) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1201 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1201], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2095, 951) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 951) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 951 AND "spree_option_types"."id" = 564 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 951) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["option_type_id", 564], ["position", 1], ["product_id", 951], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 564) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "jpeg"], ["option_type_id", 564], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.540883' WHERE "spree_products"."id" = 951 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 951], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.542177' WHERE "spree_products"."id" = 951  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3329, 1115) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 564) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "PDF"], ["option_type_id", 564], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.546726' WHERE "spree_products"."id" = 951 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 951], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.547854' WHERE "spree_products"."id" = 951  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1116, 3330) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 564) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "PNG"], ["option_type_id", 564], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.551776' WHERE "spree_products"."id" = 951 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 951], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.554051' WHERE "spree_products"."id" = 951  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1117, 3331) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 951]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 951) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3329 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3330 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3331 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 951) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.565794' WHERE "spree_products"."id" = 951  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3329 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.567041' WHERE "spree_products"."id" = 951 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.568375' WHERE "spree_products"."id" = 951  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3330 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.569512' WHERE "spree_products"."id" = 951 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 951 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.570748' WHERE "spree_products"."id" = 951  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3331 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.571550' WHERE "spree_products"."id" = 951 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 951) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 951 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.574596', "count_on_hand" = 25 WHERE "spree_products"."id" = 951 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 951 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.580895' WHERE "spree_products"."id" = 952 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 952], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.582102' WHERE "spree_products"."id" = 952  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3332 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.583390' WHERE "spree_products"."id" = 952  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 952  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["product_id", nil], ["property_id", 838], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:05.589102', "product_id" = 952 WHERE "spree_product_properties"."id" = 1015 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 952) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 952 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (952, 2094) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1202 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1202], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (952, 2096) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" = 2094 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2094]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2094], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1200], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2094]] Spree::Taxon Load (0.3ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2097]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2097 THEN 2094 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.4ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2094]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2097]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" = 2097 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2097]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2097], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1200], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2097]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2098]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2098 THEN 2097 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2097]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2098]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (952, 2097)  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (952, 2098) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 952) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 952 AND "spree_option_types"."id" = 564 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 952) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["option_type_id", 564], ["position", 1], ["product_id", 952], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.622410' WHERE "spree_products"."id" = 952 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 952], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.623597' WHERE "spree_products"."id" = 952  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3333, 1115) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.626102' WHERE "spree_products"."id" = 952 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 952], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.627102' WHERE "spree_products"."id" = 952  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3334, 1116) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.629889' WHERE "spree_products"."id" = 952 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 952], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.630841' WHERE "spree_products"."id" = 952  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1117, 3335) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 952]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 952) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3333 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3334 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3335 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 952) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.753863' WHERE "spree_products"."id" = 952  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3333 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.755086' WHERE "spree_products"."id" = 952 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.756166' WHERE "spree_products"."id" = 952  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3334 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.756959' WHERE "spree_products"."id" = 952 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 952 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.757998' WHERE "spree_products"."id" = 952  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3335 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.759104' WHERE "spree_products"."id" = 952 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 952) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 952 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.761641', "count_on_hand" = 11 WHERE "spree_products"."id" = 952 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 952 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.767779' WHERE "spree_products"."id" = 953 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.769105' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3336 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.770211' WHERE "spree_products"."id" = 953  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 953  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["product_id", nil], ["property_id", 839], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:05.775862', "product_id" = 953 WHERE "spree_product_properties"."id" = 1016 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["product_id", nil], ["property_id", 838], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:05.778342', "product_id" = 953 WHERE "spree_product_properties"."id" = 1017 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["product_id", nil], ["property_id", 840], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 14:50:05.781001', "product_id" = 953 WHERE "spree_product_properties"."id" = 1018 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 953) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1203 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1203], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 953 Product assigned to Taxons : ["Drawings"]  (0.6ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2099, 953) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1200 AND "spree_taxons"."parent_id" = 2094 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2094]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2094], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1200], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2094]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2100]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2100 THEN 2094 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2094]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2100]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2100, 953)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2094, 953) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 953) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 953 AND "spree_option_types"."id" = 564 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 953) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["option_type_id", 564], ["position", 1], ["product_id", 953], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.803853' WHERE "spree_products"."id" = 953 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.805105' WHERE "spree_products"."id" = 953  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1115, 3337) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.807500' WHERE "spree_products"."id" = 953 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.808681' WHERE "spree_products"."id" = 953  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1116, 3338) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 564 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.813840' WHERE "spree_products"."id" = 953 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.814814' WHERE "spree_products"."id" = 953  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1117, 3339) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 953]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 953 AND "spree_option_types"."id" = 565 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 953) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["option_type_id", 565], ["position", 2], ["product_id", 953], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 565 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 565) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "black_white"], ["option_type_id", 565], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.826920' WHERE "spree_products"."id" = 953 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.828304' WHERE "spree_products"."id" = 953  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1118, 3340) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 565 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 565) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00], ["name", "colour"], ["option_type_id", 565], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:50:05 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.832934' WHERE "spree_products"."id" = 953 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 953], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.834313' WHERE "spree_products"."id" = 953  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3341, 1119) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 953]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 953) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3337 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3338 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3339 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3340 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3341 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 953) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.988848' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3337 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.990107' WHERE "spree_products"."id" = 953 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.991206' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3338 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.991985' WHERE "spree_products"."id" = 953 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.993425' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3339 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.994331' WHERE "spree_products"."id" = 953 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.995533' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3340 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.996429' WHERE "spree_products"."id" = 953 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 953 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.999197' WHERE "spree_products"."id" = 953  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3341 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:05.999986' WHERE "spree_products"."id" = 953 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 953) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:50:06.195756', "count_on_hand" = 53 WHERE "spree_products"."id" = 953 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 953 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (364.5ms) commit transaction Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 953 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3336) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 953)) Excel Loader processing 0 rows  (0.0ms) begin transaction  (0.1ms) rollback transaction Booted Spree using version 1.1.3 SQL (1179.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.3ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (3.3ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (436.3ms) DELETE FROM "spree_taxonomies" SQL (330.1ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (5.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.118257' WHERE "spree_products"."id" = 954 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 954], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.120637' WHERE "spree_products"."id" = 954  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3342 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.124783' WHERE "spree_products"."id" = 954  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 954  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Created New Property # SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["product_id", nil], ["property_id", 841], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 954, "updated_at" = '2012-10-01 14:53:54.260843' WHERE "spree_product_properties"."id" = 1019 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 954) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1204], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 954 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (954, 2101) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1205 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1205], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (954, 2102) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 954) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::OptionType Exists (2.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 954 AND "spree_option_types"."id" = 566 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 954) ORDER BY position DESC LIMIT 1 SQL (11.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["option_type_id", 566], ["position", 1], ["product_id", 954], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 566) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "jpeg"], ["option_type_id", 566], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.528749' WHERE "spree_products"."id" = 954 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 954], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.530891' WHERE "spree_products"."id" = 954  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1120, 3343) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 566) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "PDF"], ["option_type_id", 566], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.538794' WHERE "spree_products"."id" = 954 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 954], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.539712' WHERE "spree_products"."id" = 954  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1121, 3344) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 566) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "PNG"], ["option_type_id", 566], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.544385' WHERE "spree_products"."id" = 954 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 954], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.546512' WHERE "spree_products"."id" = 954  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3345, 1122) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 954]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 954) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3343 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3344 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3345 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 954) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.574065' WHERE "spree_products"."id" = 954  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3343 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.575298' WHERE "spree_products"."id" = 954 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.576665' WHERE "spree_products"."id" = 954  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3344 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.577862' WHERE "spree_products"."id" = 954 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 954 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.691291' WHERE "spree_products"."id" = 954  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3345 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.692150' WHERE "spree_products"."id" = 954 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 954) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 954 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:53:54.694922' WHERE "spree_products"."id" = 954 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 954 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.701046' WHERE "spree_products"."id" = 955 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 955], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.702345' WHERE "spree_products"."id" = 955  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3346 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.703688' WHERE "spree_products"."id" = 955  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 955  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["product_id", nil], ["property_id", 842], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 955, "updated_at" = '2012-10-01 14:53:54.709536' WHERE "spree_product_properties"."id" = 1020 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 955) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 955 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2101, 955) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1206 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1206], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2103, 955) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" = 2101 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2101]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2101], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1204], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2101]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2104]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2104 THEN 2101 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2101]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2104]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" = 2104 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2104]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2104], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1204], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2104]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2105]] SQL (0.1ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2105 THEN 2104 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2104]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2105]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2104, 955)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2105, 955) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 955) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 955 AND "spree_option_types"."id" = 566 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 955) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["option_type_id", 566], ["position", 1], ["product_id", 955], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.740922' WHERE "spree_products"."id" = 955 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 955], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.741853' WHERE "spree_products"."id" = 955  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1120, 3347) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.744879' WHERE "spree_products"."id" = 955 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 955], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.745823' WHERE "spree_products"."id" = 955  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1121, 3348) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.748310' WHERE "spree_products"."id" = 955 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 955], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.749393' WHERE "spree_products"."id" = 955  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3349, 1122) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 955]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 955) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3347 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3348 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3349 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 955) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.949380' WHERE "spree_products"."id" = 955  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3347 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.950342' WHERE "spree_products"."id" = 955 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.951568' WHERE "spree_products"."id" = 955  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3348 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.952505' WHERE "spree_products"."id" = 955 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 955 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.954013' WHERE "spree_products"."id" = 955  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3349 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.954986' WHERE "spree_products"."id" = 955 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 955) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 955 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:53:54.957930' WHERE "spree_products"."id" = 955 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 955 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.965800' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.966867' WHERE "spree_products"."id" = 956  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3350 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:54.968182' WHERE "spree_products"."id" = 956  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 956  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["product_id", nil], ["property_id", 843], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 956, "updated_at" = '2012-10-01 14:53:54.974208' WHERE "spree_product_properties"."id" = 1021 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["product_id", nil], ["property_id", 842], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 956, "updated_at" = '2012-10-01 14:53:54.976697' WHERE "spree_product_properties"."id" = 1022 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["product_id", nil], ["property_id", 844], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 956, "updated_at" = '2012-10-01 14:53:54.980194' WHERE "spree_product_properties"."id" = 1023 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 956) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1207 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1207], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 956 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2106, 956) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1204 AND "spree_taxons"."parent_id" = 2101 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2101]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2101], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1204], ["updated_at", Mon, 01 Oct 2012 14:53:54 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2101]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2107]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2107 THEN 2101 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2101]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2107]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2107, 956)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2101, 956) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 956) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 956 AND "spree_option_types"."id" = 566 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 956) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00], ["option_type_id", 566], ["position", 1], ["product_id", 956], ["updated_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.079763' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.081131' WHERE "spree_products"."id" = 956  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3351, 1120) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.084216' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.085249' WHERE "spree_products"."id" = 956  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3352, 1121) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 566 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.087855' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.088759' WHERE "spree_products"."id" = 956  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3353, 1122) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 956]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 956 AND "spree_option_types"."id" = 567 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 956) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00], ["option_type_id", 567], ["position", 2], ["product_id", 956], ["updated_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 567 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 567) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00], ["name", "black_white"], ["option_type_id", 567], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.100192' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.101414' WHERE "spree_products"."id" = 956  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3354, 1123) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 567 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 567) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00], ["name", "colour"], ["option_type_id", 567], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:55 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.106185' WHERE "spree_products"."id" = 956 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 956], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.107187' WHERE "spree_products"."id" = 956  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1124, 3355) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 956]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 956) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (12.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3351 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3352 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3353 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3354 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3355 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 956) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.135153' WHERE "spree_products"."id" = 956  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3351 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.136215' WHERE "spree_products"."id" = 956 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.137484' WHERE "spree_products"."id" = 956  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3352 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.138262' WHERE "spree_products"."id" = 956 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.139314' WHERE "spree_products"."id" = 956  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3353 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.140202' WHERE "spree_products"."id" = 956 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.141328' WHERE "spree_products"."id" = 956  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3354 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.142181' WHERE "spree_products"."id" = 956 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 956 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.143280' WHERE "spree_products"."id" = 956  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3355 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:55.144011' WHERE "spree_products"."id" = 956 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 956) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:53:55.146844' WHERE "spree_products"."id" = 956 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 956 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (264.7ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 956 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3350) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 956)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.4ms) rollback transaction SQL (5.8ms) DELETE FROM "spree_products" SQL (0.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (339.3ms) DELETE FROM "spree_option_values" SQL (248.2ms) DELETE FROM "spree_properties" SQL (3.3ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (121.6ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.346319' WHERE "spree_products"."id" = 957 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 957], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.347732' WHERE "spree_products"."id" = 957  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3356 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.349820' WHERE "spree_products"."id" = 957  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 957  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["product_id", nil], ["property_id", 845], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 957, "updated_at" = '2012-10-01 14:53:56.367023' WHERE "spree_product_properties"."id" = 1024 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 957) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.6ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1208], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 957 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2108, 957) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1209 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1209], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2109, 957) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 957) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::OptionType Exists (1.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 957 AND "spree_option_types"."id" = 568 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 957) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["option_type_id", 568], ["position", 1], ["product_id", 957], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 568) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "jpeg"], ["option_type_id", 568], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.617695' WHERE "spree_products"."id" = 957 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 957], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.619101' WHERE "spree_products"."id" = 957  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1125, 3357) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 568) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "PDF"], ["option_type_id", 568], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.623782' WHERE "spree_products"."id" = 957 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 957], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.624878' WHERE "spree_products"."id" = 957  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3358, 1126) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 568) ORDER BY position DESC LIMIT 1 SQL (127.6ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "PNG"], ["option_type_id", 568], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.756564' WHERE "spree_products"."id" = 957 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 957], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.758153' WHERE "spree_products"."id" = 957  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1127, 3359) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 957]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 957) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3357 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3358 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.8ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3359 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 957) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.770203' WHERE "spree_products"."id" = 957  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3357 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.770957' WHERE "spree_products"."id" = 957 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.772379' WHERE "spree_products"."id" = 957  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3358 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.773218' WHERE "spree_products"."id" = 957 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 957 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.774378' WHERE "spree_products"."id" = 957  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3359 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.775440' WHERE "spree_products"."id" = 957 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 957) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 957 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 14:53:56.778376' WHERE "spree_products"."id" = 957 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 957 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.785059' WHERE "spree_products"."id" = 958 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 958], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.786245' WHERE "spree_products"."id" = 958  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3360 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.787691' WHERE "spree_products"."id" = 958  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 958  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["product_id", nil], ["property_id", 846], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 958, "updated_at" = '2012-10-01 14:53:56.793216' WHERE "spree_product_properties"."id" = 1025 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 958) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 958 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (958, 2108) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1210 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1210], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (958, 2110) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" = 2108 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2108]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2108], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1208], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2108]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2111]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2111 THEN 2108 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2108]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2111]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" = 2111 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2111]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2111], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1208], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2111]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2112]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2112 THEN 2111 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2111]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2112]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (958, 2111)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (958, 2112) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 958) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 958 AND "spree_option_types"."id" = 568 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 958) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["option_type_id", 568], ["position", 1], ["product_id", 958], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.824783' WHERE "spree_products"."id" = 958 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 958], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.825756' WHERE "spree_products"."id" = 958  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1125, 3361) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.828536' WHERE "spree_products"."id" = 958 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 958], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.829578' WHERE "spree_products"."id" = 958  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3362, 1126) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.832258' WHERE "spree_products"."id" = 958 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 958], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.833209' WHERE "spree_products"."id" = 958  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1127, 3363) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 958]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 958) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3361 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3362 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3363 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 958) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.845934' WHERE "spree_products"."id" = 958  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3361 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.847120' WHERE "spree_products"."id" = 958 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.848441' WHERE "spree_products"."id" = 958  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3362 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.849663' WHERE "spree_products"."id" = 958 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 958 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.850603' WHERE "spree_products"."id" = 958  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3363 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.851512' WHERE "spree_products"."id" = 958 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 958) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 958 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 14:53:56.854081' WHERE "spree_products"."id" = 958 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 958 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (1.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.981550' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.982443' WHERE "spree_products"."id" = 959  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3364 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:56.983797' WHERE "spree_products"."id" = 959  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 959  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["product_id", nil], ["property_id", 847], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 959, "updated_at" = '2012-10-01 14:53:56.989973' WHERE "spree_product_properties"."id" = 1026 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["product_id", nil], ["property_id", 846], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 959, "updated_at" = '2012-10-01 14:53:56.992184' WHERE "spree_product_properties"."id" = 1027 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["product_id", nil], ["property_id", 848], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 959, "updated_at" = '2012-10-01 14:53:56.995258' WHERE "spree_product_properties"."id" = 1028 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 959) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1211 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1211], ["updated_at", Mon, 01 Oct 2012 14:53:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 959 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (959, 2113) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1208 AND "spree_taxons"."parent_id" = 2108 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2108]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2108], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1208], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2108]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2114]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2114 THEN 2108 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2108]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2114]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (959, 2114)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (959, 2108) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 959) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 959 AND "spree_option_types"."id" = 568 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 959) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["option_type_id", 568], ["position", 1], ["product_id", 959], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.020180' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.021180' WHERE "spree_products"."id" = 959  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1125, 3365) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.023846' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.025063' WHERE "spree_products"."id" = 959  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1126, 3366) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 568 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.027063' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.028377' WHERE "spree_products"."id" = 959  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1127, 3367) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 959]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 959 AND "spree_option_types"."id" = 569 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 959) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["option_type_id", 569], ["position", 2], ["product_id", 959], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 569 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 569) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["name", "black_white"], ["option_type_id", 569], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.040212' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.041880' WHERE "spree_products"."id" = 959  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1128, 3368) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 569 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 569) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00], ["name", "colour"], ["option_type_id", 569], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 14:53:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.046642' WHERE "spree_products"."id" = 959 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 959], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.047444' WHERE "spree_products"."id" = 959  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1129, 3369) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 959]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 959) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3365 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3366 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3367 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3368 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3369 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 959) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.075257' WHERE "spree_products"."id" = 959  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3365 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.076556' WHERE "spree_products"."id" = 959 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.078033' WHERE "spree_products"."id" = 959  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3366 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.079174' WHERE "spree_products"."id" = 959 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (118.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.081247' WHERE "spree_products"."id" = 959  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3367 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.200936' WHERE "spree_products"."id" = 959 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.202420' WHERE "spree_products"."id" = 959  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3368 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.203387' WHERE "spree_products"."id" = 959 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 959 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.204652' WHERE "spree_products"."id" = 959  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3369 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 14:53:57.205446' WHERE "spree_products"."id" = 959 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 959) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 14:53:57.285853' WHERE "spree_products"."id" = 959 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 959 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (238.4ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 959 AND ("spree_variants".is_master = 't') LIMIT 1  (119.8ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3364) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 959)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction Booted Spree using version 1.1.3 SQL (338.7ms) DELETE FROM "spree_products" SQL (1.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (344.8ms) DELETE FROM "spree_option_types" SQL (127.9ms) DELETE FROM "spree_option_values" SQL (116.8ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (110.5ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (4.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.325243' WHERE "spree_products"."id" = 960 SQL (1.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 960], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.327940' WHERE "spree_products"."id" = 960  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3370 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.329876' WHERE "spree_products"."id" = 960  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 960  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["product_id", nil], ["property_id", 849], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 960, "updated_at" = '2012-10-01 15:02:15.347046' WHERE "spree_product_properties"."id" = 1029 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 960) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1212], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 960 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (960, 2115) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1213 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1213], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (960, 2116) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 960) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::OptionType Exists (2.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 960 AND "spree_option_types"."id" = 570 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 960) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["option_type_id", 570], ["position", 1], ["product_id", 960], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 570) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "jpeg"], ["option_type_id", 570], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.759944' WHERE "spree_products"."id" = 960 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 960], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.761572' WHERE "spree_products"."id" = 960  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1130, 3371) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 570) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "PDF"], ["option_type_id", 570], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.767644' WHERE "spree_products"."id" = 960 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 960], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.769086' WHERE "spree_products"."id" = 960  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3372, 1131) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 570) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "PNG"], ["option_type_id", 570], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.772937' WHERE "spree_products"."id" = 960 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 960], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.774215' WHERE "spree_products"."id" = 960  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1132, 3373) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 960]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 960) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3371 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3372 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3373 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 960) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.800343' WHERE "spree_products"."id" = 960  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3371 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.801601' WHERE "spree_products"."id" = 960 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.802645' WHERE "spree_products"."id" = 960  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3372 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.803813' WHERE "spree_products"."id" = 960 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 960 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.804923' WHERE "spree_products"."id" = 960  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3373 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.805645' WHERE "spree_products"."id" = 960 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 960) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 960 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:02:15.808987' WHERE "spree_products"."id" = 960 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 960 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.815097' WHERE "spree_products"."id" = 961 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 961], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.816071' WHERE "spree_products"."id" = 961  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3374 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.817246' WHERE "spree_products"."id" = 961  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 961  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["product_id", nil], ["property_id", 850], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 961, "updated_at" = '2012-10-01 15:02:15.822852' WHERE "spree_product_properties"."id" = 1030 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 961) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 961 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (961, 2115) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1214 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1214], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (961, 2117) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2115 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2115]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2115], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1212], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2115]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2118]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2118 THEN 2115 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2115]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2118]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2118 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2118]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2118], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1212], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2118]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2119]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2119 THEN 2118 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2118]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2119]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (961, 2118)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (961, 2119) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 961) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 961 AND "spree_option_types"."id" = 570 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 961) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00], ["option_type_id", 570], ["position", 1], ["product_id", 961], ["updated_at", Mon, 01 Oct 2012 15:02:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.916599' WHERE "spree_products"."id" = 961 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 961], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.917647' WHERE "spree_products"."id" = 961  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1130, 3375) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.920437' WHERE "spree_products"."id" = 961 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 961], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.921805' WHERE "spree_products"."id" = 961  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3376, 1131) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.924158' WHERE "spree_products"."id" = 961 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 961], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:15.925432' WHERE "spree_products"."id" = 961  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3377, 1132) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 961]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 961) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3375 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3376 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3377 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 961) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.077956' WHERE "spree_products"."id" = 961  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3375 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.078924' WHERE "spree_products"."id" = 961 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.080091' WHERE "spree_products"."id" = 961  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3376 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.081050' WHERE "spree_products"."id" = 961 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 961 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.082310' WHERE "spree_products"."id" = 961  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3377 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.083172' WHERE "spree_products"."id" = 961 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 961) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 961 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:02:16.085649' WHERE "spree_products"."id" = 961 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 961 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.092932' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.094120' WHERE "spree_products"."id" = 962  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3378 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.095147' WHERE "spree_products"."id" = 962  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 962  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["product_id", nil], ["property_id", 851], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 962, "updated_at" = '2012-10-01 15:02:16.102039' WHERE "spree_product_properties"."id" = 1031 Created New ProductProperty # Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["product_id", nil], ["property_id", 850], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 962, "updated_at" = '2012-10-01 15:02:16.104302' WHERE "spree_product_properties"."id" = 1032 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["product_id", nil], ["property_id", 852], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 962, "updated_at" = '2012-10-01 15:02:16.107394' WHERE "spree_product_properties"."id" = 1033 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 962) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1215 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1215], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 962 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2120, 962) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1212 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2115 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2115]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2115], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1212], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2115]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2121]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2121 THEN 2115 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2115]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2121]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2121, 962)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2115, 962) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 962) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 962 AND "spree_option_types"."id" = 570 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 962) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["option_type_id", 570], ["position", 1], ["product_id", 962], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.130416' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.131650' WHERE "spree_products"."id" = 962  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3379, 1130) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.134305' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.135258' WHERE "spree_products"."id" = 962  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1131, 3380) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 570 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.137719' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.138526' WHERE "spree_products"."id" = 962  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3381, 1132) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 962]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 962 AND "spree_option_types"."id" = 571 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 962) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["option_type_id", 571], ["position", 2], ["product_id", 962], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 571 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 571) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "black_white"], ["option_type_id", 571], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.149980' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.152006' WHERE "spree_products"."id" = 962  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3382, 1133) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 571 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 571) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00], ["name", "colour"], ["option_type_id", 571], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:16 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.156496' WHERE "spree_products"."id" = 962 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 962], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.157586' WHERE "spree_products"."id" = 962  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1134, 3383) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 962]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 962) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3379 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3380 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3381 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3382 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3383 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 962) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.304368' WHERE "spree_products"."id" = 962  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3379 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.305576' WHERE "spree_products"."id" = 962 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.306881' WHERE "spree_products"."id" = 962  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3380 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.307682' WHERE "spree_products"."id" = 962 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.308936' WHERE "spree_products"."id" = 962  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3381 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.309877' WHERE "spree_products"."id" = 962 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.310921' WHERE "spree_products"."id" = 962  (0.4ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3382 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.312241' WHERE "spree_products"."id" = 962 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 962 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.313427' WHERE "spree_products"."id" = 962  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3383 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:16.314241' WHERE "spree_products"."id" = 962 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 962) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:02:16.316843' WHERE "spree_products"."id" = 962 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 962 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (368.7ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 962 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3378) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 962)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (166.1ms) DELETE FROM "spree_products" SQL (1.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (343.0ms) DELETE FROM "spree_option_values" SQL (331.8ms) DELETE FROM "spree_properties" SQL (221.2ms) DELETE FROM "spree_product_properties" SQL (116.2ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (128.3ms) DELETE FROM "spree_taxonomies" SQL (2.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.244450' WHERE "spree_products"."id" = 963 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 963], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.245869' WHERE "spree_products"."id" = 963  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3384 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.247544' WHERE "spree_products"."id" = 963  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 963  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["product_id", nil], ["property_id", 853], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 963, "updated_at" = '2012-10-01 15:02:18.282503' WHERE "spree_product_properties"."id" = 1034 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1216], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 963 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (963, 2122) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1217 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1217], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.5ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (963, 2123) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionType Exists (1.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 963 AND "spree_option_types"."id" = 572 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 963) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["option_type_id", 572], ["position", 1], ["product_id", 963], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 572) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "jpeg"], ["option_type_id", 572], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.510367' WHERE "spree_products"."id" = 963 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 963], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.512167' WHERE "spree_products"."id" = 963  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1135, 3385) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 572) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "PDF"], ["option_type_id", 572], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.516125' WHERE "spree_products"."id" = 963 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 963], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.517514' WHERE "spree_products"."id" = 963  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3386, 1136) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 572) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "PNG"], ["option_type_id", 572], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (20.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.521351' WHERE "spree_products"."id" = 963 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 963], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.543137' WHERE "spree_products"."id" = 963  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1137, 3387) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 963]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3385 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3386 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3387 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.554228' WHERE "spree_products"."id" = 963  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3385 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.555324' WHERE "spree_products"."id" = 963 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.556333' WHERE "spree_products"."id" = 963  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3386 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.557308' WHERE "spree_products"."id" = 963 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 963 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.558561' WHERE "spree_products"."id" = 963  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3387 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.559529' WHERE "spree_products"."id" = 963 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:02:18.561932' WHERE "spree_products"."id" = 963 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 963 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.568787' WHERE "spree_products"."id" = 964 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 964], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.569929' WHERE "spree_products"."id" = 964  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3388 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.571286' WHERE "spree_products"."id" = 964  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 964  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["product_id", nil], ["property_id", 854], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 964, "updated_at" = '2012-10-01 15:02:18.577436' WHERE "spree_product_properties"."id" = 1035 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 964 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2122, 964) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1218 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1218], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2124, 964) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2122 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2122]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2122], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1216], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2122]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2125]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2125 THEN 2122 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2122]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2125]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2125 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2125]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2125], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1216], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2125]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2126]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2126 THEN 2125 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2125]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2126]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2125, 964)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2126, 964) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 964 AND "spree_option_types"."id" = 572 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 964) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["option_type_id", 572], ["position", 1], ["product_id", 964], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.722887' WHERE "spree_products"."id" = 964 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 964], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.724128' WHERE "spree_products"."id" = 964  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1135, 3389) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.726565' WHERE "spree_products"."id" = 964 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 964], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.727687' WHERE "spree_products"."id" = 964  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3390, 1136) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.730460' WHERE "spree_products"."id" = 964 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 964], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.731687' WHERE "spree_products"."id" = 964  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3391, 1137) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 964]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3389 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3390 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3391 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.744305' WHERE "spree_products"."id" = 964  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3389 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.745417' WHERE "spree_products"."id" = 964 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.746214' WHERE "spree_products"."id" = 964  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3390 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.747114' WHERE "spree_products"."id" = 964 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 964 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.748254' WHERE "spree_products"."id" = 964  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3391 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.749062' WHERE "spree_products"."id" = 964 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:02:18.751320' WHERE "spree_products"."id" = 964 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 964 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.758066' WHERE "spree_products"."id" = 965 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.759245' WHERE "spree_products"."id" = 965  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3392 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.760456' WHERE "spree_products"."id" = 965  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 965  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["product_id", nil], ["property_id", 855], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 965, "updated_at" = '2012-10-01 15:02:18.766078' WHERE "spree_product_properties"."id" = 1036 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["product_id", nil], ["property_id", 854], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["value", "Example free value"]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 965, "updated_at" = '2012-10-01 15:02:18.768399' WHERE "spree_product_properties"."id" = 1037 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["product_id", nil], ["property_id", 856], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 965, "updated_at" = '2012-10-01 15:02:18.771196' WHERE "spree_product_properties"."id" = 1038 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1219 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1219], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 965 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (965, 2127) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1216 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2122 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2122]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2122], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1216], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2122]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2128]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2128 THEN 2122 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2122]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2128]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (965, 2128)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (965, 2122) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 965 AND "spree_option_types"."id" = 572 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 965) ORDER BY position DESC LIMIT 1 SQL (119.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["option_type_id", 572], ["position", 1], ["product_id", 965], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.916684' WHERE "spree_products"."id" = 965 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.918413' WHERE "spree_products"."id" = 965  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3393, 1135) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.921690' WHERE "spree_products"."id" = 965 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.922667' WHERE "spree_products"."id" = 965  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3394, 1136) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 572 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.925420' WHERE "spree_products"."id" = 965 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.926685' WHERE "spree_products"."id" = 965  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1137, 3395) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 965]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 965 AND "spree_option_types"."id" = 573 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 965) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["option_type_id", 573], ["position", 2], ["product_id", 965], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 573 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 573) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "black_white"], ["option_type_id", 573], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.941673' WHERE "spree_products"."id" = 965 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.942690' WHERE "spree_products"."id" = 965  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3396, 1138) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 573 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 573) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00], ["name", "colour"], ["option_type_id", 573], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:02:18 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.947871' WHERE "spree_products"."id" = 965 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 965], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (21.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.949334' WHERE "spree_products"."id" = 965  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3397, 1139) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 965]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3393 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3394 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3395 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3396 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3397 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.987000' WHERE "spree_products"."id" = 965  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3393 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:18.988174' WHERE "spree_products"."id" = 965 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.191404' WHERE "spree_products"."id" = 965  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3394 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.192461' WHERE "spree_products"."id" = 965 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.193792' WHERE "spree_products"."id" = 965  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3395 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.194642' WHERE "spree_products"."id" = 965 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.195791' WHERE "spree_products"."id" = 965  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3396 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.196659' WHERE "spree_products"."id" = 965 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 965 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.198183' WHERE "spree_products"."id" = 965  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3397 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:02:19.199028' WHERE "spree_products"."id" = 965 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:02:19.202215' WHERE "spree_products"."id" = 965 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 965 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.0ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3392) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 965)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3384) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 963)) ORDER BY "spree_assets".position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 963) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:02:19 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 963], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3384) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 963)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 963) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:02:20 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 963], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 963) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 963 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 963 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3388) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 964)) ORDER BY "spree_assets".position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 964) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:02:33 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 964], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 964) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 964 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 964 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3392) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 965)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 965) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:02:46 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 965], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 965) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 965  (4.9ms) commit transaction Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 965]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 965 AND ("spree_variants".is_master = 't') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3392) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 965)) Booted Spree using version 1.1.3 SQL (1659.8ms) DELETE FROM "spree_products" SQL (235.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (254.4ms) DELETE FROM "spree_option_types" SQL (370.1ms) DELETE FROM "spree_option_values" SQL (111.5ms) DELETE FROM "spree_properties" SQL (125.8ms) DELETE FROM "spree_product_properties" SQL (3.4ms) DELETE FROM "spree_variants" SQL (2.7ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (21.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.670613' WHERE "spree_products"."id" = 966 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 966], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.672473' WHERE "spree_products"."id" = 966  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3398 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.674212' WHERE "spree_products"."id" = 966  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 966  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["product_id", nil], ["property_id", 857], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["value", nil]]  (0.9ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:23.689482', "product_id" = 966 WHERE "spree_product_properties"."id" = 1039 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 966) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1220], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 966 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (966, 2129) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1221 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1221], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (966, 2130) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 966) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 966 AND "spree_option_types"."id" = 574 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 966) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["option_type_id", 574], ["position", 1], ["product_id", 966], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 574) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "jpeg"], ["option_type_id", 574], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.958070' WHERE "spree_products"."id" = 966 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 966], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.959419' WHERE "spree_products"."id" = 966  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3399, 1140) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 574) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "PDF"], ["option_type_id", 574], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.965317' WHERE "spree_products"."id" = 966 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 966], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.966760' WHERE "spree_products"."id" = 966  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3400, 1141) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 574) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00], ["name", "PNG"], ["option_type_id", 574], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:23 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.971088' WHERE "spree_products"."id" = 966 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 966], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:23.972274' WHERE "spree_products"."id" = 966  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3401, 1142) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 966]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 966) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3399 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3400 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3401 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 966) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.005182' WHERE "spree_products"."id" = 966  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3399 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.006212' WHERE "spree_products"."id" = 966 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.007396' WHERE "spree_products"."id" = 966  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3400 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.008408' WHERE "spree_products"."id" = 966 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 966 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.009467' WHERE "spree_products"."id" = 966  (2.6ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3401 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.012717' WHERE "spree_products"."id" = 966 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 966) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 966 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:08:24.015422' WHERE "spree_products"."id" = 966 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 966 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.150602' WHERE "spree_products"."id" = 967 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 967], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.151740' WHERE "spree_products"."id" = 967  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3402 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.152963' WHERE "spree_products"."id" = 967  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 967  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["product_id", nil], ["property_id", 858], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:24.160537', "product_id" = 967 WHERE "spree_product_properties"."id" = 1040 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 967) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 967 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (967, 2129) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1222 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1222], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (967, 2131) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2129 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2129]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2129], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1220], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2129]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2132]] SQL (1.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2132 THEN 2129 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2129]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2132]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2132 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2132]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2132], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1220], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2132]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2133]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2133 THEN 2132 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2132]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2133]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (967, 2132)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (967, 2133) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 967) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 967 AND "spree_option_types"."id" = 574 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 967) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["option_type_id", 574], ["position", 1], ["product_id", 967], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.201409' WHERE "spree_products"."id" = 967 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 967], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.203763' WHERE "spree_products"."id" = 967  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1140, 3403) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.206655' WHERE "spree_products"."id" = 967 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 967], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.207812' WHERE "spree_products"."id" = 967  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3404, 1141) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.212032' WHERE "spree_products"."id" = 967 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 967], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.213448' WHERE "spree_products"."id" = 967  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3405, 1142) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 967]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 967) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3403 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3404 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3405 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 967) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.427653' WHERE "spree_products"."id" = 967  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3403 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.428967' WHERE "spree_products"."id" = 967 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.430203' WHERE "spree_products"."id" = 967  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3404 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.430967' WHERE "spree_products"."id" = 967 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 967 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.432547' WHERE "spree_products"."id" = 967  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3405 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.433168' WHERE "spree_products"."id" = 967 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 967) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 967 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:08:24.435955' WHERE "spree_products"."id" = 967 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 967 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.442233' WHERE "spree_products"."id" = 968 SQL (0.9ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.444093' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3406 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.445116' WHERE "spree_products"."id" = 968  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 968  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["product_id", nil], ["property_id", 859], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:24.450968', "product_id" = 968 WHERE "spree_product_properties"."id" = 1041 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["product_id", nil], ["property_id", 858], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:24.453942', "product_id" = 968 WHERE "spree_product_properties"."id" = 1042 Created New ProductProperty # Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["product_id", nil], ["property_id", 860], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:24.456925', "product_id" = 968 WHERE "spree_product_properties"."id" = 1043 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 968) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1223 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1223], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 968 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2134, 968) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1220 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2129 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2129]] SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2129], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1220], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2129]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2135]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2135 THEN 2129 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2129]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2135]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2135, 968)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2129, 968) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 968) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 968 AND "spree_option_types"."id" = 574 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 968) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["option_type_id", 574], ["position", 1], ["product_id", 968], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::OptionValue Load (1.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.512812' WHERE "spree_products"."id" = 968 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.514117' WHERE "spree_products"."id" = 968  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3407, 1140) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.517233' WHERE "spree_products"."id" = 968 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.518210' WHERE "spree_products"."id" = 968  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1141, 3408) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 574 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.520933' WHERE "spree_products"."id" = 968 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.522115' WHERE "spree_products"."id" = 968  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1142, 3409) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 968]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 968 AND "spree_option_types"."id" = 575 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (3.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 968) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["option_type_id", 575], ["position", 2], ["product_id", 968], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 575 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 575) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "black_white"], ["option_type_id", 575], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.537959' WHERE "spree_products"."id" = 968 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.540620' WHERE "spree_products"."id" = 968  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3410, 1143) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 575 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 575) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00], ["name", "colour"], ["option_type_id", 575], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:24 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.562476' WHERE "spree_products"."id" = 968 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 968], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.565255' WHERE "spree_products"."id" = 968  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1144, 3411) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 968]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 968) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3407 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3408 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3409 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3410 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3411 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 968) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.581679' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3407 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.582969' WHERE "spree_products"."id" = 968 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.584235' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3408 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.584969' WHERE "spree_products"."id" = 968 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.586169' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3409 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.587102' WHERE "spree_products"."id" = 968 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.588313' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3410 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.588970' WHERE "spree_products"."id" = 968 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 968 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.590471' WHERE "spree_products"."id" = 968  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3411 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:24.591334' WHERE "spree_products"."id" = 968 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 968) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:08:24.594150' WHERE "spree_products"."id" = 968 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 968 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (322.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 968 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3406) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 968)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:84", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.0ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (346.3ms) DELETE FROM "spree_products" SQL (0.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (247.7ms) DELETE FROM "spree_option_types" SQL (4.1ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (6.7ms) DELETE FROM "spree_product_properties" SQL (2.7ms) DELETE FROM "spree_variants" SQL (2.7ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (21.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:25.670508' WHERE "spree_products"."id" = 969 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 969], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:25.672331' WHERE "spree_products"."id" = 969  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3412 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:25.673760' WHERE "spree_products"."id" = 969  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 969  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["product_id", nil], ["property_id", 861], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:25.680453', "product_id" = 969 WHERE "spree_product_properties"."id" = 1044 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1224], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 969 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (969, 2136) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1225 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1225], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (969, 2137) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 969 AND "spree_option_types"."id" = 576 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 969) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["option_type_id", 576], ["position", 1], ["product_id", 969], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 576) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00], ["name", "jpeg"], ["option_type_id", 576], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:25.789239' WHERE "spree_products"."id" = 969 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 969], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:25.789987' WHERE "spree_products"."id" = 969  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1145, 3413) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 576) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "PDF"], ["option_type_id", 576], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.026336' WHERE "spree_products"."id" = 969 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 969], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.027374' WHERE "spree_products"."id" = 969  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3414, 1146) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 576) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "PNG"], ["option_type_id", 576], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.036733' WHERE "spree_products"."id" = 969 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 969], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.038718' WHERE "spree_products"."id" = 969  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3415, 1147) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 969]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3413 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3414 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3415 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.053869' WHERE "spree_products"."id" = 969  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3413 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.055161' WHERE "spree_products"."id" = 969 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.057475' WHERE "spree_products"."id" = 969  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3414 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.058246' WHERE "spree_products"."id" = 969 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 969 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.059425' WHERE "spree_products"."id" = 969  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3415 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.060384' WHERE "spree_products"."id" = 969 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:08:26.066579' WHERE "spree_products"."id" = 969 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 969 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.074758' WHERE "spree_products"."id" = 970 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 970], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.076051' WHERE "spree_products"."id" = 970  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3416 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.077523' WHERE "spree_products"."id" = 970  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 970  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["product_id", nil], ["property_id", 862], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:26.083273', "product_id" = 970 WHERE "spree_product_properties"."id" = 1045 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 970 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (970, 2136) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1226 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1226], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (970, 2138) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2136 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2136]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2136], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1224], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2136]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2139]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2139 THEN 2136 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2136]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2139]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2139 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2139]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2139], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1224], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2139]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2140]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2140 THEN 2139 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2139]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2140]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (970, 2139)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (970, 2140) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 970 AND "spree_option_types"."id" = 576 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 970) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["option_type_id", 576], ["position", 1], ["product_id", 970], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.111827' WHERE "spree_products"."id" = 970 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 970], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.112959' WHERE "spree_products"."id" = 970  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3417, 1145) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.115502' WHERE "spree_products"."id" = 970 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 970], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.116533' WHERE "spree_products"."id" = 970  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3418, 1146) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.119213' WHERE "spree_products"."id" = 970 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 970], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.119992' WHERE "spree_products"."id" = 970  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1147, 3419) Spree::Product Load (1.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 970]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3417 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3418 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3419 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.295407' WHERE "spree_products"."id" = 970  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3417 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.296317' WHERE "spree_products"."id" = 970 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.297498' WHERE "spree_products"."id" = 970  (0.5ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3418 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.298994' WHERE "spree_products"."id" = 970 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 970 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.300994' WHERE "spree_products"."id" = 970  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3419 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.302182' WHERE "spree_products"."id" = 970 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:08:26.304547' WHERE "spree_products"."id" = 970 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 970 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.312065' WHERE "spree_products"."id" = 971 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.313584' WHERE "spree_products"."id" = 971  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3420 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.314609' WHERE "spree_products"."id" = 971  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 971  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["product_id", nil], ["property_id", 863], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:26.319995', "product_id" = 971 WHERE "spree_product_properties"."id" = 1046 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["product_id", nil], ["property_id", 862], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:26.322967', "product_id" = 971 WHERE "spree_product_properties"."id" = 1047 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["product_id", nil], ["property_id", 864], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:08:26.326236', "product_id" = 971 WHERE "spree_product_properties"."id" = 1048 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1227 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1227], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 971 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (971, 2141) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1224 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2136 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2136]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2136], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1224], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2136]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2142]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2142 THEN 2136 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2136]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2142]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (971, 2142)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (971, 2136) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 971 AND "spree_option_types"."id" = 576 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 971) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["option_type_id", 576], ["position", 1], ["product_id", 971], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.350914' WHERE "spree_products"."id" = 971 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.352135' WHERE "spree_products"."id" = 971  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3421, 1145) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.354641' WHERE "spree_products"."id" = 971 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.355768' WHERE "spree_products"."id" = 971  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3422, 1146) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 576 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.358317' WHERE "spree_products"."id" = 971 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.359386' WHERE "spree_products"."id" = 971  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3423, 1147) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 971]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 971 AND "spree_option_types"."id" = 577 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 971) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["option_type_id", 577], ["position", 2], ["product_id", 971], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 577 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 577) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "black_white"], ["option_type_id", 577], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.370364' WHERE "spree_products"."id" = 971 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.372806' WHERE "spree_products"."id" = 971  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3424, 1148) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 577 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 577) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00], ["name", "colour"], ["option_type_id", 577], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:08:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.377233' WHERE "spree_products"."id" = 971 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 971], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.378513' WHERE "spree_products"."id" = 971  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3425, 1149) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 971]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3421 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3422 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3423 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3424 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3425 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.542170' WHERE "spree_products"."id" = 971  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3421 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.543170' WHERE "spree_products"."id" = 971 Spree::Product Load (1.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.630233' WHERE "spree_products"."id" = 971  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3422 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.631753' WHERE "spree_products"."id" = 971 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.632681' WHERE "spree_products"."id" = 971  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3423 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.633353' WHERE "spree_products"."id" = 971 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.634592' WHERE "spree_products"."id" = 971  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3424 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.674912' WHERE "spree_products"."id" = 971 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 971 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.803656' WHERE "spree_products"."id" = 971  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3425 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:08:26.804930' WHERE "spree_products"."id" = 971 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:08:26.808868' WHERE "spree_products"."id" = 971 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 971 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (423.4ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3420) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 971)) Excel Loader processing 0 rows  (0.2ms) begin transaction Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1 Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3412) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 969)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 969) ORDER BY position DESC LIMIT 1 SQL (1.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:08:27 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 969], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3412) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 969)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 969) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:08:28 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 969], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 969) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 969 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1 Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3416) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 970)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 970) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:08:39 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 970], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 970) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 970 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3420) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 971)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 971) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:08:51 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 971], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 971) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 971  (3.5ms) commit transaction Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 970 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3416) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 970)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 969 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3412) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 969)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3420) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 971)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 971]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 971 AND ("spree_variants".is_master = 't') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3420) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 971)) Booted Spree using version 1.1.3 SQL (1593.3ms) DELETE FROM "spree_products" SQL (5.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (114.5ms) DELETE FROM "spree_variants" SQL (4.6ms) DELETE FROM "spree_taxons" SQL (2.5ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.4ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.4ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:25.657170' WHERE "spree_products"."id" = 972 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 972], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:25.659537' WHERE "spree_products"."id" = 972  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3426 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:25.661851' WHERE "spree_products"."id" = 972  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 972  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["product_id", nil], ["property_id", 865], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:25.807739', "product_id" = 972 WHERE "spree_product_properties"."id" = 1049 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 972) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1228], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 972 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (972, 2143) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1229 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1229], ["updated_at", Mon, 01 Oct 2012 15:09:25 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (972, 2144) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 972) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 972 AND "spree_option_types"."id" = 578 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 972) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["option_type_id", 578], ["position", 1], ["product_id", 972], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 578) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "jpeg"], ["option_type_id", 578], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.061595' WHERE "spree_products"."id" = 972 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 972], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.062857' WHERE "spree_products"."id" = 972  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3427, 1150) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 578) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "PDF"], ["option_type_id", 578], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.069824' WHERE "spree_products"."id" = 972 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 972], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.071996' WHERE "spree_products"."id" = 972  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3428, 1151) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 578) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "PNG"], ["option_type_id", 578], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.076483' WHERE "spree_products"."id" = 972 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 972], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.077525' WHERE "spree_products"."id" = 972  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3429, 1152) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 972]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 972) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3427 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3428 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3429 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 972) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.105642' WHERE "spree_products"."id" = 972  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3427 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.106858' WHERE "spree_products"."id" = 972 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.108294' WHERE "spree_products"."id" = 972  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3428 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.108990' WHERE "spree_products"."id" = 972 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 972 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.110045' WHERE "spree_products"."id" = 972  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3429 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.110858' WHERE "spree_products"."id" = 972 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 972) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 972 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:09:26.114190' WHERE "spree_products"."id" = 972 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 972 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (125.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.246587' WHERE "spree_products"."id" = 973 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 973], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.247698' WHERE "spree_products"."id" = 973  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3430 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.249004' WHERE "spree_products"."id" = 973  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 973  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["product_id", nil], ["property_id", 866], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:26.254773', "product_id" = 973 WHERE "spree_product_properties"."id" = 1050 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 973) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 973 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2143, 973) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1230 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1230], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2145, 973) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" = 2143 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2143]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2143], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1228], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2143]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2146]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2146 THEN 2143 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2143]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2146]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" = 2146 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2146]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2146], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1228], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2146]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2147]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2147 THEN 2146 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2146]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2147]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2146, 973)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2147, 973) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 973) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 973 AND "spree_option_types"."id" = 578 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 973) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["option_type_id", 578], ["position", 1], ["product_id", 973], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.286699' WHERE "spree_products"."id" = 973 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 973], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.287969' WHERE "spree_products"."id" = 973  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3431, 1150) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.290789' WHERE "spree_products"."id" = 973 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 973], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.291972' WHERE "spree_products"."id" = 973  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1151, 3432) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.294680' WHERE "spree_products"."id" = 973 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 973], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.295967' WHERE "spree_products"."id" = 973  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3433, 1152) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 973]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 973) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3431 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3432 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3433 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 973) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.490756' WHERE "spree_products"."id" = 973  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3431 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.491629' WHERE "spree_products"."id" = 973 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.492825' WHERE "spree_products"."id" = 973  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3432 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.493726' WHERE "spree_products"."id" = 973 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 973 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.494815' WHERE "spree_products"."id" = 973  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3433 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.495623' WHERE "spree_products"."id" = 973 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 973) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 973 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:09:26.498358' WHERE "spree_products"."id" = 973 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 973 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.505609' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.506678' WHERE "spree_products"."id" = 974  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3434 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.507972' WHERE "spree_products"."id" = 974  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 974  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["product_id", nil], ["property_id", 867], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:26.513934', "product_id" = 974 WHERE "spree_product_properties"."id" = 1051 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["product_id", nil], ["property_id", 866], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:26.516246', "product_id" = 974 WHERE "spree_product_properties"."id" = 1052 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["product_id", nil], ["property_id", 868], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:26.519363', "product_id" = 974 WHERE "spree_product_properties"."id" = 1053 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 974) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1231 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1231], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 974 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (974, 2148) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1228 AND "spree_taxons"."parent_id" = 2143 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2143]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2143], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1228], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2143]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2149]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2149 THEN 2143 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2143]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2149]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (974, 2149)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (974, 2143) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 974) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 974 AND "spree_option_types"."id" = 578 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 974) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["option_type_id", 578], ["position", 1], ["product_id", 974], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.543725' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.544734' WHERE "spree_products"."id" = 974  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3435, 1150) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.547179' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.548127' WHERE "spree_products"."id" = 974  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3436, 1151) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 578 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.550307' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.551213' WHERE "spree_products"."id" = 974  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1152, 3437) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 974]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 974 AND "spree_option_types"."id" = 579 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 974) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["option_type_id", 579], ["position", 2], ["product_id", 974], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 579 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 579) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "black_white"], ["option_type_id", 579], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.674849' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.675981' WHERE "spree_products"."id" = 974  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1153, 3438) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 579 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 579) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00], ["name", "colour"], ["option_type_id", 579], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.680167' WHERE "spree_products"."id" = 974 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 974], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.681181' WHERE "spree_products"."id" = 974  (0.5ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1154, 3439) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 974]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 974) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3435 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3436 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3437 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3438 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3439 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 974) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.695366' WHERE "spree_products"."id" = 974  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3435 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.696281' WHERE "spree_products"."id" = 974 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.697669' WHERE "spree_products"."id" = 974  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3436 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.698505' WHERE "spree_products"."id" = 974 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.699577' WHERE "spree_products"."id" = 974  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3437 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.700754' WHERE "spree_products"."id" = 974 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.701735' WHERE "spree_products"."id" = 974  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3438 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.702512' WHERE "spree_products"."id" = 974 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 974 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.703844' WHERE "spree_products"."id" = 974  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3439 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:26.704905' WHERE "spree_products"."id" = 974 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 974) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:09:26.707580' WHERE "spree_products"."id" = 974 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 974 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (225.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 974 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3434) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 974)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:82:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # ["/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:438:in `save'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:126:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.0ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (430.4ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (319.0ms) DELETE FROM "spree_option_types" SQL (3.3ms) DELETE FROM "spree_option_values" SQL (56.7ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (253.6ms) DELETE FROM "spree_taxons" SQL (252.1ms) DELETE FROM "spree_taxonomies" SQL (225.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.3ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.578372' WHERE "spree_products"."id" = 975 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 975], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.580124' WHERE "spree_products"."id" = 975  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3440 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.581609' WHERE "spree_products"."id" = 975  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 975  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["product_id", nil], ["property_id", 869], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:28.588885', "product_id" = 975 WHERE "spree_product_properties"."id" = 1054 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1232], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 975 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (975, 2150) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1233 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1233], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (975, 2151) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 975 AND "spree_option_types"."id" = 580 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 975) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["option_type_id", 580], ["position", 1], ["product_id", 975], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 580) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "jpeg"], ["option_type_id", 580], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.815619' WHERE "spree_products"."id" = 975 SQL (1.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 975], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.818778' WHERE "spree_products"."id" = 975  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1155, 3441) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 580) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "PDF"], ["option_type_id", 580], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.822532' WHERE "spree_products"."id" = 975 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 975], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.823611' WHERE "spree_products"."id" = 975  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3442, 1156) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 580) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "PNG"], ["option_type_id", 580], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.830351' WHERE "spree_products"."id" = 975 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 975], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.831289' WHERE "spree_products"."id" = 975  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3443, 1157) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 975]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3441 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3442 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3443 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.842369' WHERE "spree_products"."id" = 975  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3441 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.843475' WHERE "spree_products"."id" = 975 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.844499' WHERE "spree_products"."id" = 975  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3442 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.845897' WHERE "spree_products"."id" = 975 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 975 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.955359' WHERE "spree_products"."id" = 975  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3443 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.956884' WHERE "spree_products"."id" = 975 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:09:28.959741' WHERE "spree_products"."id" = 975 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 975 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.966298' WHERE "spree_products"."id" = 976 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 976], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.967495' WHERE "spree_products"."id" = 976  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3444 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:28.968550' WHERE "spree_products"."id" = 976  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 976  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["product_id", nil], ["property_id", 870], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:28.974583', "product_id" = 976 WHERE "spree_product_properties"."id" = 1055 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 976 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2150, 976) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1234 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1234], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2152, 976) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" = 2150 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2150]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2150], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1232], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2150]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2153]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2153 THEN 2150 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2150]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2153]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" = 2153 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2153]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2153], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1232], ["updated_at", Mon, 01 Oct 2012 15:09:28 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2153]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2154]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2154 THEN 2153 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2153]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2154]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2153, 976)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2154, 976) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 976 AND "spree_option_types"."id" = 580 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (2.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 976) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["option_type_id", 580], ["position", 1], ["product_id", 976], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.006228' WHERE "spree_products"."id" = 976 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 976], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.007510' WHERE "spree_products"."id" = 976  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1155, 3445) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.009759' WHERE "spree_products"."id" = 976 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 976], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.011008' WHERE "spree_products"."id" = 976  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1156, 3446) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.015017' WHERE "spree_products"."id" = 976 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 976], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.016304' WHERE "spree_products"."id" = 976  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1157, 3447) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 976]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3445 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3446 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.7ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3447 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.029180' WHERE "spree_products"."id" = 976  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3445 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.030063' WHERE "spree_products"."id" = 976 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.030896' WHERE "spree_products"."id" = 976  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3446 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.031879' WHERE "spree_products"."id" = 976 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 976 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.032900' WHERE "spree_products"."id" = 976  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3447 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.033838' WHERE "spree_products"."id" = 976 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:09:29.035900' WHERE "spree_products"."id" = 976 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 976 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.042131' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.043295' WHERE "spree_products"."id" = 977  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3448 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.044335' WHERE "spree_products"."id" = 977  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 977  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["product_id", nil], ["property_id", 871], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:29.049583', "product_id" = 977 WHERE "spree_product_properties"."id" = 1056 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["product_id", nil], ["property_id", 870], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:29.052002', "product_id" = 977 WHERE "spree_product_properties"."id" = 1057 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["product_id", nil], ["property_id", 872], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:09:29.055243', "product_id" = 977 WHERE "spree_product_properties"."id" = 1058 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1235 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1235], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 977 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (977, 2155) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1232 AND "spree_taxons"."parent_id" = 2150 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2150]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2150], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1232], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2150]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2156]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2156 THEN 2150 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2150]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2156]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (977, 2156)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (977, 2150) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 977 AND "spree_option_types"."id" = 580 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 977) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["option_type_id", 580], ["position", 1], ["product_id", 977], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.192778' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.193802' WHERE "spree_products"."id" = 977  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1155, 3449) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.196558' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.197451' WHERE "spree_products"."id" = 977  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1156, 3450) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 580 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.199558' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.200635' WHERE "spree_products"."id" = 977  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3451, 1157) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 977]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 977 AND "spree_option_types"."id" = 581 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 977) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["option_type_id", 581], ["position", 2], ["product_id", 977], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 581 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 581) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "black_white"], ["option_type_id", 581], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.215807' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.216968' WHERE "spree_products"."id" = 977  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3452, 1158) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 581 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 581) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["name", "colour"], ["option_type_id", 581], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.224761' WHERE "spree_products"."id" = 977 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 977], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.226809' WHERE "spree_products"."id" = 977  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1159, 3453) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 977]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3449 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3450 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3451 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3452 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3453 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.243335' WHERE "spree_products"."id" = 977  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3449 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.244680' WHERE "spree_products"."id" = 977 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.443418' WHERE "spree_products"."id" = 977  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3450 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.444516' WHERE "spree_products"."id" = 977 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.445993' WHERE "spree_products"."id" = 977  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3451 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.446850' WHERE "spree_products"."id" = 977 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.447716' WHERE "spree_products"."id" = 977  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3452 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.448476' WHERE "spree_products"."id" = 977 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 977 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.449597' WHERE "spree_products"."id" = 977  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3453 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:09:29.450508' WHERE "spree_products"."id" = 977 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:09:29.452985' WHERE "spree_products"."id" = 977 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 977 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (279.2ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3448) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 977)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3440) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 975)) ORDER BY "spree_assets".position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 975) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:09:29 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 975], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3440) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 975)) ORDER BY "spree_assets".position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 975) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:09:30 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 975], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 975) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 975 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3444) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 976)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 976) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:09:38 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 976], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 976) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 976 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3448) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 977)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 977) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:09:51 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 977], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 977) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 977  (9.5ms) commit transaction Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 976 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3444) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 976)) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3448) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 977)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 975 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3440) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 975)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 977]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 977 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3448) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 977)) Booted Spree using version 1.1.3 SQL (240.9ms) DELETE FROM "spree_products" SQL (6.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (246.8ms) DELETE FROM "spree_option_types" SQL (893.5ms) DELETE FROM "spree_option_values" SQL (712.9ms) DELETE FROM "spree_properties" SQL (410.6ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.3ms) commit transaction PRODUCT # MASTER: #  (0.3ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.332163' WHERE "spree_products"."id" = 978 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 978], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.333918' WHERE "spree_products"."id" = 978  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3454 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.336181' WHERE "spree_products"."id" = 978  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 978  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["product_id", nil], ["property_id", 873], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:24.352535', "product_id" = 978 WHERE "spree_product_properties"."id" = 1059 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 978) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1236], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 978 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2157, 978) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1237 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1237], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2158, 978) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 978) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 978 AND "spree_option_types"."id" = 582 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 978) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["option_type_id", 582], ["position", 1], ["product_id", 978], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 582) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "jpeg"], ["option_type_id", 582], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.714472' WHERE "spree_products"."id" = 978 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 978], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.716230' WHERE "spree_products"."id" = 978  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3455, 1160) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 582) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "PDF"], ["option_type_id", 582], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.722414' WHERE "spree_products"."id" = 978 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 978], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.723565' WHERE "spree_products"."id" = 978  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1161, 3456) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 582) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "PNG"], ["option_type_id", 582], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.726988' WHERE "spree_products"."id" = 978 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 978], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.728042' WHERE "spree_products"."id" = 978  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1162, 3457) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 978]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 978) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (219.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3455 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3456 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3457 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 978) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.978405' WHERE "spree_products"."id" = 978  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3455 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.979472' WHERE "spree_products"."id" = 978 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.980529' WHERE "spree_products"."id" = 978  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3456 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.981289' WHERE "spree_products"."id" = 978 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 978 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.982313' WHERE "spree_products"."id" = 978  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3457 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.983155' WHERE "spree_products"."id" = 978 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 978) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 978 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.985468', "count_on_hand" = 25 WHERE "spree_products"."id" = 978 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 978 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.991469' WHERE "spree_products"."id" = 979 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 979], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.992461' WHERE "spree_products"."id" = 979  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3458 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:24.993844' WHERE "spree_products"."id" = 979  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 979  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["product_id", nil], ["property_id", 874], ["updated_at", Mon, 01 Oct 2012 15:12:24 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:24.999024', "product_id" = 979 WHERE "spree_product_properties"."id" = 1060 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 979) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 979 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (979, 2157) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1238 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1238], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (979, 2159) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2157 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2157]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2157], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1236], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2157]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2160]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2160 THEN 2157 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2157]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2160]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2160 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2160]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2160], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1236], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2160]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2161]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2161 THEN 2160 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2160]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2161]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (979, 2160)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (979, 2161) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 979) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 979 AND "spree_option_types"."id" = 582 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 979) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["option_type_id", 582], ["position", 1], ["product_id", 979], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.030959' WHERE "spree_products"."id" = 979 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 979], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.032049' WHERE "spree_products"."id" = 979  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3459, 1160) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.034613' WHERE "spree_products"."id" = 979 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 979], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.035747' WHERE "spree_products"."id" = 979  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1161, 3460) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.039268' WHERE "spree_products"."id" = 979 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 979], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.040296' WHERE "spree_products"."id" = 979  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1162, 3461) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 979]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 979) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3459 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3460 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3461 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 979) LIMIT 1  (75.7ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.368068' WHERE "spree_products"."id" = 979  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3459 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.369241' WHERE "spree_products"."id" = 979 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.370621' WHERE "spree_products"."id" = 979  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3460 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.371386' WHERE "spree_products"."id" = 979 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 979 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.372518' WHERE "spree_products"."id" = 979  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3461 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.373345' WHERE "spree_products"."id" = 979 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 979) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 979 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.376154', "count_on_hand" = 11 WHERE "spree_products"."id" = 979 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 979 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.382603' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.383446' WHERE "spree_products"."id" = 980  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3462 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.384654' WHERE "spree_products"."id" = 980  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 980  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["product_id", nil], ["property_id", 875], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:25.664074', "product_id" = 980 WHERE "spree_product_properties"."id" = 1061 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["product_id", nil], ["property_id", 874], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:25.666673', "product_id" = 980 WHERE "spree_product_properties"."id" = 1062 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["product_id", nil], ["property_id", 876], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:25.669623', "product_id" = 980 WHERE "spree_product_properties"."id" = 1063 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 980) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1239 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1239], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 980 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (980, 2162) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1236 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2157 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2157]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2157], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1236], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2157]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2163]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2163 THEN 2157 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2157]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2163]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (980, 2163)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (980, 2157) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 980) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 980 AND "spree_option_types"."id" = 582 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 980) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["option_type_id", 582], ["position", 1], ["product_id", 980], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.697975' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.699155' WHERE "spree_products"."id" = 980  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1160, 3463) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.701091' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.702339' WHERE "spree_products"."id" = 980  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1161, 3464) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 582 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.704830' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.705592' WHERE "spree_products"."id" = 980  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1162, 3465) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 980]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 980 AND "spree_option_types"."id" = 583 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 980) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["option_type_id", 583], ["position", 2], ["product_id", 980], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 583 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 583) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "black_white"], ["option_type_id", 583], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.718248' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.719145' WHERE "spree_products"."id" = 980  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1163, 3466) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 583 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 583) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00], ["name", "colour"], ["option_type_id", 583], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:25 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.723129' WHERE "spree_products"."id" = 980 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 980], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.724278' WHERE "spree_products"."id" = 980  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1164, 3467) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 980]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 980) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3463 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3464 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3465 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3466 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.6ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3467 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 980) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.756554' WHERE "spree_products"."id" = 980  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3463 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.757646' WHERE "spree_products"."id" = 980 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.758621' WHERE "spree_products"."id" = 980  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3464 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.759438' WHERE "spree_products"."id" = 980 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.760452' WHERE "spree_products"."id" = 980  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3465 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.761302' WHERE "spree_products"."id" = 980 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.762278' WHERE "spree_products"."id" = 980  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3466 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.763999' WHERE "spree_products"."id" = 980 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 980 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.764827' WHERE "spree_products"."id" = 980  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3467 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.765670' WHERE "spree_products"."id" = 980 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 980) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:25.768330', "count_on_hand" = 53 WHERE "spree_products"."id" = 980 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 980 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (1534.0ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 980 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3462) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 980)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1161.5ms) DELETE FROM "spree_products" SQL (2.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (680.6ms) DELETE FROM "spree_option_types" SQL (3.6ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (110.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (230.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.3ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:29.909032' WHERE "spree_products"."id" = 981 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 981], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:29.910912' WHERE "spree_products"."id" = 981  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3468 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:29.912343' WHERE "spree_products"."id" = 981  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 981  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["product_id", nil], ["property_id", 877], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:29.918745', "product_id" = 981 WHERE "spree_product_properties"."id" = 1064 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1240], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 981 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (981, 2164) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1241 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1241], ["updated_at", Mon, 01 Oct 2012 15:12:29 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (981, 2165) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionType Exists (1.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 981 AND "spree_option_types"."id" = 584 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 981) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["option_type_id", 584], ["position", 1], ["product_id", 981], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 584) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "jpeg"], ["option_type_id", 584], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.145890' WHERE "spree_products"."id" = 981 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 981], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.147272' WHERE "spree_products"."id" = 981  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3469, 1165) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 584) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "PDF"], ["option_type_id", 584], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.151985' WHERE "spree_products"."id" = 981 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 981], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.175633' WHERE "spree_products"."id" = 981  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1166, 3470) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 584) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "PNG"], ["option_type_id", 584], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.181484' WHERE "spree_products"."id" = 981 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 981], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.182913' WHERE "spree_products"."id" = 981  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3471, 1167) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 981]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3469 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3470 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3471 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.195390' WHERE "spree_products"."id" = 981  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3469 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.196354' WHERE "spree_products"."id" = 981 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.197500' WHERE "spree_products"."id" = 981  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3470 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.198333' WHERE "spree_products"."id" = 981 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 981 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.199481' WHERE "spree_products"."id" = 981  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3471 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.200288' WHERE "spree_products"."id" = 981 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.203045', "count_on_hand" = 25 WHERE "spree_products"."id" = 981 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 981 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.209950' WHERE "spree_products"."id" = 982 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 982], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.211762' WHERE "spree_products"."id" = 982  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3472 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.213048' WHERE "spree_products"."id" = 982  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 982  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["product_id", nil], ["property_id", 878], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:30.218712', "product_id" = 982 WHERE "spree_product_properties"."id" = 1065 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 982 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2164, 982) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1242 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1242], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2166, 982) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2164 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2164]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2164], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1240], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2164]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2167]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2167 THEN 2164 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2164]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2167]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2167 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2167]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2167], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1240], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2167]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2168]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2168 THEN 2167 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2167]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2168]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2167, 982)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2168, 982) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 982 AND "spree_option_types"."id" = 584 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 982) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["option_type_id", 584], ["position", 1], ["product_id", 982], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.359803' WHERE "spree_products"."id" = 982 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 982], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.360921' WHERE "spree_products"."id" = 982  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3473, 1165) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.363007' WHERE "spree_products"."id" = 982 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 982], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.363941' WHERE "spree_products"."id" = 982  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1166, 3474) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.366385' WHERE "spree_products"."id" = 982 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 982], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.367337' WHERE "spree_products"."id" = 982  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3475, 1167) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 982]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3473 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3474 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3475 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.380267' WHERE "spree_products"."id" = 982  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3473 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.381292' WHERE "spree_products"."id" = 982 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.382597' WHERE "spree_products"."id" = 982  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3474 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.383373' WHERE "spree_products"."id" = 982 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 982 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.384410' WHERE "spree_products"."id" = 982  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3475 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.385100' WHERE "spree_products"."id" = 982 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.387250', "count_on_hand" = 11 WHERE "spree_products"."id" = 982 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 982 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.393422' WHERE "spree_products"."id" = 983 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.394395' WHERE "spree_products"."id" = 983  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3476 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.395638' WHERE "spree_products"."id" = 983  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 983  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["product_id", nil], ["property_id", 879], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:30.401409', "product_id" = 983 WHERE "spree_product_properties"."id" = 1066 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["product_id", nil], ["property_id", 878], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:30.403966', "product_id" = 983 WHERE "spree_product_properties"."id" = 1067 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["product_id", nil], ["property_id", 880], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:12:30.406762', "product_id" = 983 WHERE "spree_product_properties"."id" = 1068 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1243 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1243], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 983 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (983, 2169) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1240 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2164 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2164]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2164], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1240], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2164]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2170]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2170 THEN 2164 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2164]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2170]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (983, 2170)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (983, 2164) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 983 AND "spree_option_types"."id" = 584 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 983) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["option_type_id", 584], ["position", 1], ["product_id", 983], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.429851' WHERE "spree_products"."id" = 983 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.430939' WHERE "spree_products"."id" = 983  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1165, 3477) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.433413' WHERE "spree_products"."id" = 983 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.434393' WHERE "spree_products"."id" = 983  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3478, 1166) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 584 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.436838' WHERE "spree_products"."id" = 983 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.438002' WHERE "spree_products"."id" = 983  (0.9ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1167, 3479) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 983]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 983 AND "spree_option_types"."id" = 585 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 983) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["option_type_id", 585], ["position", 2], ["product_id", 983], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 585 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 585) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "black_white"], ["option_type_id", 585], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.451109' WHERE "spree_products"."id" = 983 SQL (134.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.587237' WHERE "spree_products"."id" = 983  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1168, 3480) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 585 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 585) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00], ["name", "colour"], ["option_type_id", 585], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:12:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.592609' WHERE "spree_products"."id" = 983 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 983], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.593654' WHERE "spree_products"."id" = 983  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1169, 3481) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 983]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3477 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3478 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3479 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3480 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3481 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.609348' WHERE "spree_products"."id" = 983  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3477 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.610334' WHERE "spree_products"."id" = 983 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.611690' WHERE "spree_products"."id" = 983  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3478 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.612609' WHERE "spree_products"."id" = 983 Spree::Product Load (114.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.801197' WHERE "spree_products"."id" = 983  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3479 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.802274' WHERE "spree_products"."id" = 983 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.803444' WHERE "spree_products"."id" = 983  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3480 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.804262' WHERE "spree_products"."id" = 983 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 983 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.805352' WHERE "spree_products"."id" = 983  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3481 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.806310' WHERE "spree_products"."id" = 983 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:12:30.808889', "count_on_hand" = 53 WHERE "spree_products"."id" = 983 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 983 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (248.4ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3476) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 983)) Excel Loader processing 0 rows  (0.0ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3468) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 981)) ORDER BY "spree_assets".position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 981) ORDER BY position DESC LIMIT 1 SQL (1.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:12:31 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 981], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3468) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 981)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 981) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:12:32 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 981], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 981) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 981 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1 Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3472) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 982)) ORDER BY "spree_assets".position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 982) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:12:39 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 982], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 982) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 982 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1 Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3476) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 983)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 983) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:12:47 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 983], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 983) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 983  (6.7ms) commit transaction Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (21.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 982 AND ("spree_variants".is_master = 't') LIMIT 1  (1.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3472) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 982)) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3476) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 983)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 981 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3468) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 981)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 983]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 983 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3476) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 983)) Booted Spree using version 1.1.3 SQL (5227.7ms) DELETE FROM "spree_products" SQL (225.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (329.1ms) DELETE FROM "spree_option_types" SQL (346.3ms) DELETE FROM "spree_option_values" SQL (225.2ms) DELETE FROM "spree_properties" SQL (3.5ms) DELETE FROM "spree_product_properties" SQL (2.4ms) DELETE FROM "spree_variants" SQL (90.4ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (157.0ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (21.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.115117' WHERE "spree_products"."id" = 984 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 984], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.118455' WHERE "spree_products"."id" = 984  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3482 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.121948' WHERE "spree_products"."id" = 984  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 984  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["product_id", nil], ["property_id", 881], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:41.139425', "product_id" = 984 WHERE "spree_product_properties"."id" = 1069 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 984) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1244], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 984 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2171, 984) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1245 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1245], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.3ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2172, 984) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 984) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionType Exists (3.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 984 AND "spree_option_types"."id" = 586 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 984) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["option_type_id", 586], ["position", 1], ["product_id", 984], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 586) ORDER BY position DESC LIMIT 1 SQL (0.7ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "jpeg"], ["option_type_id", 586], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.418805' WHERE "spree_products"."id" = 984 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 984], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.420143' WHERE "spree_products"."id" = 984  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1170, 3483) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 586) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "PDF"], ["option_type_id", 586], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.426605' WHERE "spree_products"."id" = 984 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 984], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.427900' WHERE "spree_products"."id" = 984  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1171, 3484) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 586) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "PNG"], ["option_type_id", 586], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.431762' WHERE "spree_products"."id" = 984 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 984], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.433080' WHERE "spree_products"."id" = 984  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3485, 1172) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 984]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 984) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3483 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3484 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3485 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 984) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.458409' WHERE "spree_products"."id" = 984  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3483 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.459873' WHERE "spree_products"."id" = 984 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.460928' WHERE "spree_products"."id" = 984  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3484 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.461990' WHERE "spree_products"."id" = 984 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 984 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.463089' WHERE "spree_products"."id" = 984  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3485 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.463997' WHERE "spree_products"."id" = 984 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 984) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 984 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:16:41.466501' WHERE "spree_products"."id" = 984 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 984 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.473130' WHERE "spree_products"."id" = 985 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 985], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.473894' WHERE "spree_products"."id" = 985  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3486 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.475019' WHERE "spree_products"."id" = 985  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 985  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["product_id", nil], ["property_id", 882], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:41.480693', "product_id" = 985 WHERE "spree_product_properties"."id" = 1070 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 985) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 985 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2171, 985) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1246 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1246], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2173, 985) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2171 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2171]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2171], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1244], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2171]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2174]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2174 THEN 2171 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2171]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2174]] Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2174 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2174]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2174], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1244], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2174]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2175]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2175 THEN 2174 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2174]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2175]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2174, 985)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2175, 985) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 985) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 985 AND "spree_option_types"."id" = 586 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 985) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["option_type_id", 586], ["position", 1], ["product_id", 985], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.624146' WHERE "spree_products"."id" = 985 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 985], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.625615' WHERE "spree_products"."id" = 985  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1170, 3487) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.628005' WHERE "spree_products"."id" = 985 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 985], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.629146' WHERE "spree_products"."id" = 985  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3488, 1171) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.632146' WHERE "spree_products"."id" = 985 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 985], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.633146' WHERE "spree_products"."id" = 985  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3489, 1172) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 985]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 985) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3487 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3488 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3489 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 985) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.862758' WHERE "spree_products"."id" = 985  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3487 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.864149' WHERE "spree_products"."id" = 985 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.865275' WHERE "spree_products"."id" = 985  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3488 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.866017' WHERE "spree_products"."id" = 985 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 985 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.867070' WHERE "spree_products"."id" = 985  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3489 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.868135' WHERE "spree_products"."id" = 985 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 985) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 985 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:16:41.871041' WHERE "spree_products"."id" = 985 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 985 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.877556' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.878700' WHERE "spree_products"."id" = 986  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3490 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.880057' WHERE "spree_products"."id" = 986  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 986  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["product_id", nil], ["property_id", 883], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:41.885381', "product_id" = 986 WHERE "spree_product_properties"."id" = 1071 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["product_id", nil], ["property_id", 882], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:41.888117', "product_id" = 986 WHERE "spree_product_properties"."id" = 1072 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["product_id", nil], ["property_id", 884], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:41.890862', "product_id" = 986 WHERE "spree_product_properties"."id" = 1073 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 986) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1247 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1247], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 986 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (986, 2176) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1244 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2171 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2171]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2171], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1244], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2171]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2177]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2177 THEN 2171 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2171]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2177]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (986, 2177)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (986, 2171) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 986) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 986 AND "spree_option_types"."id" = 586 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (3.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 986) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["option_type_id", 586], ["position", 1], ["product_id", 986], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.918642' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.919907' WHERE "spree_products"."id" = 986  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3491, 1170) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.923262' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.924554' WHERE "spree_products"."id" = 986  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1171, 3492) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 586 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.927441' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.928449' WHERE "spree_products"."id" = 986  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3493, 1172) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 986]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 986 AND "spree_option_types"."id" = 587 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 986) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["option_type_id", 587], ["position", 2], ["product_id", 986], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 587 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 587) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "black_white"], ["option_type_id", 587], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.940737' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.942318' WHERE "spree_products"."id" = 986  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1173, 3494) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 587 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 587) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00], ["name", "colour"], ["option_type_id", 587], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:41 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.946549' WHERE "spree_products"."id" = 986 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 986], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:41.947599' WHERE "spree_products"."id" = 986  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1174, 3495) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 986]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 986) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (19.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3491 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3492 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3493 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3494 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3495 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 986) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.085075' WHERE "spree_products"."id" = 986  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3491 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.086137' WHERE "spree_products"."id" = 986 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.087346' WHERE "spree_products"."id" = 986  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3492 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.088374' WHERE "spree_products"."id" = 986 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.089529' WHERE "spree_products"."id" = 986  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3493 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.090368' WHERE "spree_products"."id" = 986 Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.091958' WHERE "spree_products"."id" = 986  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3494 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.092757' WHERE "spree_products"."id" = 986 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 986 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.094210' WHERE "spree_products"."id" = 986  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3495 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.095037' WHERE "spree_products"."id" = 986 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 986) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:16:42.097576' WHERE "spree_products"."id" = 986 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 986 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (250.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 986 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3490) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 986)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.0ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (5.0ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (15.8ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (135.4ms) DELETE FROM "spree_properties" SQL (3.3ms) DELETE FROM "spree_product_properties" SQL (2.3ms) DELETE FROM "spree_variants" SQL (3.6ms) DELETE FROM "spree_taxons" SQL (129.3ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.860164' WHERE "spree_products"."id" = 987 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 987], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.861679' WHERE "spree_products"."id" = 987  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3496 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:42.862895' WHERE "spree_products"."id" = 987  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (16.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 987  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["product_id", nil], ["property_id", 885], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["value", nil]]  (3.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:42.887838', "product_id" = 987 WHERE "spree_product_properties"."id" = 1074 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1248], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 987 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2178, 987) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1249 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1249], ["updated_at", Mon, 01 Oct 2012 15:16:42 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.6ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2179, 987) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionType Exists (1.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 987 AND "spree_option_types"."id" = 588 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 987) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["option_type_id", 588], ["position", 1], ["product_id", 987], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 588) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "jpeg"], ["option_type_id", 588], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.136342' WHERE "spree_products"."id" = 987 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 987], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.137862' WHERE "spree_products"."id" = 987  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3497, 1175) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 588) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "PDF"], ["option_type_id", 588], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.141970' WHERE "spree_products"."id" = 987 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 987], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.142904' WHERE "spree_products"."id" = 987  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1176, 3498) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 588) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "PNG"], ["option_type_id", 588], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.171406' WHERE "spree_products"."id" = 987 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 987], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.173061' WHERE "spree_products"."id" = 987  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3499, 1177) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 987]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3497 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3498 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3499 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.185648' WHERE "spree_products"."id" = 987  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3497 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.186861' WHERE "spree_products"."id" = 987 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.188095' WHERE "spree_products"."id" = 987  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3498 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.188842' WHERE "spree_products"."id" = 987 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 987 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.191067' WHERE "spree_products"."id" = 987  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3499 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.191928' WHERE "spree_products"."id" = 987 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:16:43.194883' WHERE "spree_products"."id" = 987 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 987 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.203553' WHERE "spree_products"."id" = 988 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 988], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.204499' WHERE "spree_products"."id" = 988  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3500 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.206154' WHERE "spree_products"."id" = 988  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (109.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 988  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["product_id", nil], ["property_id", 886], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:43.323170', "product_id" = 988 WHERE "spree_product_properties"."id" = 1075 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 988 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2178, 988) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1250 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1250], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2180, 988) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2178 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2178]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2178], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1248], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2178]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2181]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2181 THEN 2178 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2178]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2181]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2181 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2181]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2181], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1248], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2181]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2182]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2182 THEN 2181 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2181]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2182]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2181, 988)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2182, 988) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 988 AND "spree_option_types"."id" = 588 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 988) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["option_type_id", 588], ["position", 1], ["product_id", 988], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.352887' WHERE "spree_products"."id" = 988 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 988], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.353796' WHERE "spree_products"."id" = 988  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1175, 3501) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.356231' WHERE "spree_products"."id" = 988 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 988], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.357171' WHERE "spree_products"."id" = 988  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3502, 1176) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.359343' WHERE "spree_products"."id" = 988 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 988], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.360171' WHERE "spree_products"."id" = 988  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1177, 3503) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 988]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3501 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3502 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3503 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.372600' WHERE "spree_products"."id" = 988  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3501 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.373370' WHERE "spree_products"."id" = 988 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.374348' WHERE "spree_products"."id" = 988  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3502 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.375067' WHERE "spree_products"."id" = 988 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 988 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.375973' WHERE "spree_products"."id" = 988  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3503 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.376695' WHERE "spree_products"."id" = 988 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:16:43.378815' WHERE "spree_products"."id" = 988 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 988 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.385357' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.386305' WHERE "spree_products"."id" = 989  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3504 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.387371' WHERE "spree_products"."id" = 989  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 989  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["product_id", nil], ["property_id", 887], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:43.394781', "product_id" = 989 WHERE "spree_product_properties"."id" = 1076 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["product_id", nil], ["property_id", 886], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:43.397204', "product_id" = 989 WHERE "spree_product_properties"."id" = 1077 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["product_id", nil], ["property_id", 888], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:16:43.401610', "product_id" = 989 WHERE "spree_product_properties"."id" = 1078 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1251 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1251], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 989 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (989, 2183) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1248 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2178 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2178]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2178], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1248], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2178]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2184]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2184 THEN 2178 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2178]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2184]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (989, 2184)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (989, 2178) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 989 AND "spree_option_types"."id" = 588 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 989) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["option_type_id", 588], ["position", 1], ["product_id", 989], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.448257' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.449476' WHERE "spree_products"."id" = 989  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3505, 1175) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.452044' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.453016' WHERE "spree_products"."id" = 989  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1176, 3506) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 588 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.455777' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.457444' WHERE "spree_products"."id" = 989  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1177, 3507) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 989]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 989 AND "spree_option_types"."id" = 589 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 989) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["option_type_id", 589], ["position", 2], ["product_id", 989], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 589 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 589) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "black_white"], ["option_type_id", 589], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.469954' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.471960' WHERE "spree_products"."id" = 989  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1178, 3508) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 589 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 589) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00], ["name", "colour"], ["option_type_id", 589], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:16:43 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.476173' WHERE "spree_products"."id" = 989 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 989], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.477381' WHERE "spree_products"."id" = 989  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1179, 3509) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 989]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3505 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3506 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3507 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3508 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3509 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.508909' WHERE "spree_products"."id" = 989  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3505 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.510173' WHERE "spree_products"."id" = 989 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.511449' WHERE "spree_products"."id" = 989  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3506 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.512579' WHERE "spree_products"."id" = 989 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.702977' WHERE "spree_products"."id" = 989  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3507 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.704391' WHERE "spree_products"."id" = 989 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.705440' WHERE "spree_products"."id" = 989  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3508 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.706367' WHERE "spree_products"."id" = 989 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 989 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.707461' WHERE "spree_products"."id" = 989  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3509 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:16:43.708504' WHERE "spree_products"."id" = 989 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:16:43.711094' WHERE "spree_products"."id" = 989 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 989 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (222.5ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3504) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 989)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (15.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1 Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3496) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 987)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 987) ORDER BY position DESC LIMIT 1 SQL (1.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:16:44 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 987], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3496) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 987)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 987) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:16:45 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 987], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 987) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 987 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3500) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 988)) ORDER BY "spree_assets".position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 988) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:16:53 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 988], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 988) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 988 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3504) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 989)) ORDER BY "spree_assets".position Spree::Asset Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 989) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:17:05 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 989], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 989) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 989  (4.0ms) commit transaction Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 988 AND ("spree_variants".is_master = 't') LIMIT 1  (0.7ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3500) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 988)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 987 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3496) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 987)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 989 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3504) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 989)) Booted Spree using version 1.1.3 SQL (256.6ms) DELETE FROM "spree_products" SQL (439.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (7.1ms) DELETE FROM "spree_option_types" SQL (3.4ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (147.5ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:28 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:28 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.019496' WHERE "spree_products"."id" = 990 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 990], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.021465' WHERE "spree_products"."id" = 990  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3510 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.023598' WHERE "spree_products"."id" = 990  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 990  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["product_id", nil], ["property_id", 889], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 990, "updated_at" = '2012-10-01 15:17:29.040627' WHERE "spree_product_properties"."id" = 1079 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 990) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1252], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 990 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (990, 2185) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1253 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1253], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.4ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (990, 2186) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 990) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionType Exists (1.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 990 AND "spree_option_types"."id" = 590 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 990) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["option_type_id", 590], ["position", 1], ["product_id", 990], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 590) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "jpeg"], ["option_type_id", 590], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.308574' WHERE "spree_products"."id" = 990 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 990], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.310038' WHERE "spree_products"."id" = 990  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1180, 3511) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 590) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "PDF"], ["option_type_id", 590], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.315902' WHERE "spree_products"."id" = 990 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 990], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.317072' WHERE "spree_products"."id" = 990  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1181, 3512) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 590) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "PNG"], ["option_type_id", 590], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.321187' WHERE "spree_products"."id" = 990 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 990], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.322544' WHERE "spree_products"."id" = 990  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1182, 3513) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 990]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 990) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3511 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3512 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3513 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 990) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.348948' WHERE "spree_products"."id" = 990  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3511 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.350139' WHERE "spree_products"."id" = 990 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.351206' WHERE "spree_products"."id" = 990  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3512 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.352222' WHERE "spree_products"."id" = 990 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 990 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.353221' WHERE "spree_products"."id" = 990  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3513 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.354048' WHERE "spree_products"."id" = 990 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 990) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 990 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.411792', "count_on_hand" = 25 WHERE "spree_products"."id" = 990 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 990 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.418816' WHERE "spree_products"."id" = 991 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 991], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.419836' WHERE "spree_products"."id" = 991  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3514 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.421067' WHERE "spree_products"."id" = 991  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 991  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["product_id", nil], ["property_id", 890], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 991, "updated_at" = '2012-10-01 15:17:29.426686' WHERE "spree_product_properties"."id" = 1080 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 991) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 991 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (991, 2185) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1254 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1254], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (991, 2187) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" = 2185 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2185]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2185], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1252], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2185]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2188]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2188 THEN 2185 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2185]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2188]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" = 2188 LIMIT 1  (0.6ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2188]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2188], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1252], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2188]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2189]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2189 THEN 2188 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2188]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2189]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (991, 2188)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (991, 2189) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 991) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 991 AND "spree_option_types"."id" = 590 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 991) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["option_type_id", 590], ["position", 1], ["product_id", 991], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.468836' WHERE "spree_products"."id" = 991 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 991], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.470376' WHERE "spree_products"."id" = 991  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1180, 3515) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.473358' WHERE "spree_products"."id" = 991 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 991], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.474315' WHERE "spree_products"."id" = 991  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3516, 1181) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.477363' WHERE "spree_products"."id" = 991 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 991], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.478633' WHERE "spree_products"."id" = 991  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1182, 3517) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 991]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 991) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3515 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3516 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3517 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 991) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.806841' WHERE "spree_products"."id" = 991  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3515 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.808443' WHERE "spree_products"."id" = 991 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.809901' WHERE "spree_products"."id" = 991  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3516 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.810779' WHERE "spree_products"."id" = 991 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 991 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.811842' WHERE "spree_products"."id" = 991  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3517 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.812627' WHERE "spree_products"."id" = 991 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 991) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 991 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.815159', "count_on_hand" = 11 WHERE "spree_products"."id" = 991 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 991 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.822441' WHERE "spree_products"."id" = 992 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.823442' WHERE "spree_products"."id" = 992  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3518 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.825020' WHERE "spree_products"."id" = 992  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 992  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["product_id", nil], ["property_id", 891], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 992, "updated_at" = '2012-10-01 15:17:29.830928' WHERE "spree_product_properties"."id" = 1081 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["product_id", nil], ["property_id", 890], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 992, "updated_at" = '2012-10-01 15:17:29.833490' WHERE "spree_product_properties"."id" = 1082 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["product_id", nil], ["property_id", 892], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 992, "updated_at" = '2012-10-01 15:17:29.836242' WHERE "spree_product_properties"."id" = 1083 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 992) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1255 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1255], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 992 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2190, 992) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1252 AND "spree_taxons"."parent_id" = 2185 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2185]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2185], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1252], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2185]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2191]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2191 THEN 2185 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2185]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2191]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2191, 992)  (0.3ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2185, 992) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 992) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 992 AND "spree_option_types"."id" = 590 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 992) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["option_type_id", 590], ["position", 1], ["product_id", 992], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.862434' WHERE "spree_products"."id" = 992 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.863402' WHERE "spree_products"."id" = 992  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3519, 1180) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.866265' WHERE "spree_products"."id" = 992 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.867112' WHERE "spree_products"."id" = 992  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1181, 3520) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 590 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.869821' WHERE "spree_products"."id" = 992 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.870654' WHERE "spree_products"."id" = 992  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1182, 3521) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 992]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 992 AND "spree_option_types"."id" = 591 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 992) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["option_type_id", 591], ["position", 2], ["product_id", 992], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 591 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 591) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "black_white"], ["option_type_id", 591], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.882270' WHERE "spree_products"."id" = 992 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.883702' WHERE "spree_products"."id" = 992  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1183, 3522) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 591 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 591) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00], ["name", "colour"], ["option_type_id", 591], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.888278' WHERE "spree_products"."id" = 992 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 992], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:29.889140' WHERE "spree_products"."id" = 992  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1184, 3523) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 992]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 992) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3519 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3520 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3521 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3522 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3523 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 992) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.041408' WHERE "spree_products"."id" = 992  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3519 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.042407' WHERE "spree_products"."id" = 992 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.043459' WHERE "spree_products"."id" = 992  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3520 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.044288' WHERE "spree_products"."id" = 992 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.045322' WHERE "spree_products"."id" = 992  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3521 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.046406' WHERE "spree_products"."id" = 992 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.047845' WHERE "spree_products"."id" = 992  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3522 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.048649' WHERE "spree_products"."id" = 992 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 992 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.049804' WHERE "spree_products"."id" = 992  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3523 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.050694' WHERE "spree_products"."id" = 992 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 992) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.053054', "count_on_hand" = 53 WHERE "spree_products"."id" = 992 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 992 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (334.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 992 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3518) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 992)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.0ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (145.8ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.1ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (118.4ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.4ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.8ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.904959' WHERE "spree_products"."id" = 993 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 993], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.906455' WHERE "spree_products"."id" = 993  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3524 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:30.934326' WHERE "spree_products"."id" = 993  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 993  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (1.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["product_id", nil], ["property_id", 893], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 993, "updated_at" = '2012-10-01 15:17:30.944386' WHERE "spree_product_properties"."id" = 1084 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1256], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 993 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (993, 2192) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1257 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1257], ["updated_at", Mon, 01 Oct 2012 15:17:30 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (2.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (993, 2193) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionType Exists (1.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 993 AND "spree_option_types"."id" = 592 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 993) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["option_type_id", 592], ["position", 1], ["product_id", 993], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 592) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "jpeg"], ["option_type_id", 592], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.221792' WHERE "spree_products"."id" = 993 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 993], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.222845' WHERE "spree_products"."id" = 993  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3525, 1185) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 592) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "PDF"], ["option_type_id", 592], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.477489' WHERE "spree_products"."id" = 993 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 993], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.478449' WHERE "spree_products"."id" = 993  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1186, 3526) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 592) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "PNG"], ["option_type_id", 592], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.482308' WHERE "spree_products"."id" = 993 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 993], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.483367' WHERE "spree_products"."id" = 993  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1187, 3527) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 993]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3525 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3526 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3527 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.493568' WHERE "spree_products"."id" = 993  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3525 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.494751' WHERE "spree_products"."id" = 993 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.496162' WHERE "spree_products"."id" = 993  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3526 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.496695' WHERE "spree_products"."id" = 993 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 993 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.498266' WHERE "spree_products"."id" = 993  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3527 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.499280' WHERE "spree_products"."id" = 993 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.501866', "count_on_hand" = 25 WHERE "spree_products"."id" = 993 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 993 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.508855' WHERE "spree_products"."id" = 994 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 994], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.510024' WHERE "spree_products"."id" = 994  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3528 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.511066' WHERE "spree_products"."id" = 994  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 994  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["product_id", nil], ["property_id", 894], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 994, "updated_at" = '2012-10-01 15:17:31.516447' WHERE "spree_product_properties"."id" = 1085 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 994 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2192, 994) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1258 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1258], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2194, 994) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" = 2192 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2192]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2192], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1256], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2192]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2195]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2195 THEN 2192 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2192]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2195]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" = 2195 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2195]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2195], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1256], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2195]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2196]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2196 THEN 2195 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2195]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2196]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2195, 994)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2196, 994) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 994 AND "spree_option_types"."id" = 592 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 994) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["option_type_id", 592], ["position", 1], ["product_id", 994], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.544997' WHERE "spree_products"."id" = 994 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 994], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.546089' WHERE "spree_products"."id" = 994  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3529, 1185) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.548510' WHERE "spree_products"."id" = 994 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 994], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.549355' WHERE "spree_products"."id" = 994  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1186, 3530) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.551846' WHERE "spree_products"."id" = 994 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 994], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.552787' WHERE "spree_products"."id" = 994  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3531, 1187) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 994]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3529 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3530 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3531 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.566344' WHERE "spree_products"."id" = 994  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3529 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.567401' WHERE "spree_products"."id" = 994 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.568445' WHERE "spree_products"."id" = 994  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3530 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.569409' WHERE "spree_products"."id" = 994 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 994 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.570835' WHERE "spree_products"."id" = 994  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3531 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.571686' WHERE "spree_products"."id" = 994 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.686668', "count_on_hand" = 11 WHERE "spree_products"."id" = 994 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 994 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.694678' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.695807' WHERE "spree_products"."id" = 995  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3532 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.696869' WHERE "spree_products"."id" = 995  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 995  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["product_id", nil], ["property_id", 895], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 995, "updated_at" = '2012-10-01 15:17:31.702869' WHERE "spree_product_properties"."id" = 1086 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["product_id", nil], ["property_id", 894], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 995, "updated_at" = '2012-10-01 15:17:31.705419' WHERE "spree_product_properties"."id" = 1087 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["product_id", nil], ["property_id", 896], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 995, "updated_at" = '2012-10-01 15:17:31.709150' WHERE "spree_product_properties"."id" = 1088 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1259 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1259], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 995 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (995, 2197) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."taxonomy_id" = 1256 AND "spree_taxons"."parent_id" = 2192 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2192]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2192], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1256], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2192]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2198]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2198 THEN 2192 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2192]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2198]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (995, 2198)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (995, 2192) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 995 AND "spree_option_types"."id" = 592 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 995) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["option_type_id", 592], ["position", 1], ["product_id", 995], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.733867' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.735008' WHERE "spree_products"."id" = 995  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1185, 3533) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.737467' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.738475' WHERE "spree_products"."id" = 995  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1186, 3534) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 592 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.741925' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.743145' WHERE "spree_products"."id" = 995  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1187, 3535) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 995]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 995 AND "spree_option_types"."id" = 593 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 995) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["option_type_id", 593], ["position", 2], ["product_id", 995], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 593 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 593) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "black_white"], ["option_type_id", 593], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.756957' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.758314' WHERE "spree_products"."id" = 995  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1188, 3536) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 593 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 593) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00], ["name", "colour"], ["option_type_id", 593], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:17:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.762868' WHERE "spree_products"."id" = 995 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 995], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.764304' WHERE "spree_products"."id" = 995  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3537, 1189) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 995]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3533 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3534 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3535 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3536 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3537 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.797287' WHERE "spree_products"."id" = 995  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3533 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.798258' WHERE "spree_products"."id" = 995 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.799870' WHERE "spree_products"."id" = 995  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3534 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:31.806746' WHERE "spree_products"."id" = 995 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.063304' WHERE "spree_products"."id" = 995  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3535 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.064499' WHERE "spree_products"."id" = 995 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.066483' WHERE "spree_products"."id" = 995  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3536 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.067316' WHERE "spree_products"."id" = 995 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 995 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.068471' WHERE "spree_products"."id" = 995  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3537 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.069713' WHERE "spree_products"."id" = 995 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:17:32.072690', "count_on_hand" = 53 WHERE "spree_products"."id" = 995 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 995 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (378.0ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3532) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 995)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1 Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3524) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 993)) ORDER BY "spree_assets".position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 993) ORDER BY position DESC LIMIT 1 SQL (1.7ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:17:32 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 993], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3524) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 993)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 993) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:17:33 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 993], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 993) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 993 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3528) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 994)) ORDER BY "spree_assets".position Spree::Asset Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 994) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:17:44 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 994], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 994) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 994 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3532) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 995)) ORDER BY "spree_assets".position Spree::Asset Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 995) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:17:54 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 995], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 995) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 995  (4.3ms) commit transaction Spree::Image Load (2.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 995 AND ("spree_variants".is_master = 't') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3532) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 995)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 994 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3528) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 994)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 993 AND ("spree_variants".is_master = 't') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3524) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 993)) Booted Spree using version 1.1.3 SQL (1226.7ms) DELETE FROM "spree_products" SQL (341.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (253.5ms) DELETE FROM "spree_option_types" SQL (496.8ms) DELETE FROM "spree_option_values" SQL (3.8ms) DELETE FROM "spree_properties" SQL (355.0ms) DELETE FROM "spree_product_properties" SQL (370.7ms) DELETE FROM "spree_variants" SQL (153.8ms) DELETE FROM "spree_taxons" SQL (216.5ms) DELETE FROM "spree_taxonomies" SQL (123.5ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (2.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (6.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.208831' WHERE "spree_products"."id" = 996 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 996], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.211553' WHERE "spree_products"."id" = 996  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3538 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.213732' WHERE "spree_products"."id" = 996  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 996  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["product_id", nil], ["property_id", 897], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:18:47.233959', "product_id" = 996 WHERE "spree_product_properties"."id" = 1089 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 996) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1260], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 996 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (996, 2199) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1261 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1261], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (996, 2200) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 996) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionType Exists (1.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 996 AND "spree_option_types"."id" = 594 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 996) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["option_type_id", 594], ["position", 1], ["product_id", 996], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 594) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "jpeg"], ["option_type_id", 594], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.502379' WHERE "spree_products"."id" = 996 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 996], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.503730' WHERE "spree_products"."id" = 996  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3539, 1190) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 594) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "PDF"], ["option_type_id", 594], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.509924' WHERE "spree_products"."id" = 996 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 996], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.510911' WHERE "spree_products"."id" = 996  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1191, 3540) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 594) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "PNG"], ["option_type_id", 594], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.515406' WHERE "spree_products"."id" = 996 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 996], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.516503' WHERE "spree_products"."id" = 996  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3541, 1192) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 996]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 996) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3539 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3540 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3541 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 996) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.541766' WHERE "spree_products"."id" = 996  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3539 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.542800' WHERE "spree_products"."id" = 996 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.543964' WHERE "spree_products"."id" = 996  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3540 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.544837' WHERE "spree_products"."id" = 996 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 996 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.545780' WHERE "spree_products"."id" = 996  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3541 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.546468' WHERE "spree_products"."id" = 996 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 996) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 996 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:18:47.548964' WHERE "spree_products"."id" = 996 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 996 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.554949' WHERE "spree_products"."id" = 997 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 997], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.555930' WHERE "spree_products"."id" = 997  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3542 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.556964' WHERE "spree_products"."id" = 997  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 997  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["product_id", nil], ["property_id", 898], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:18:47.562502', "product_id" = 997 WHERE "spree_product_properties"."id" = 1090 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 997) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 997 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2199, 997) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1262 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1262], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2201, 997) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2199 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2199]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2199], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1260], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2199]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2202]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2202 THEN 2199 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2199]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2202]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2202 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2202]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2202], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1260], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2202]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2203]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2203 THEN 2202 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2202]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2203]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2202, 997)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2203, 997) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 997) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 997 AND "spree_option_types"."id" = 594 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 997) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["option_type_id", 594], ["position", 1], ["product_id", 997], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.595312' WHERE "spree_products"."id" = 997 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 997], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.596525' WHERE "spree_products"."id" = 997  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1190, 3543) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.599157' WHERE "spree_products"."id" = 997 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 997], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.600184' WHERE "spree_products"."id" = 997  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1191, 3544) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.708819' WHERE "spree_products"."id" = 997 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 997], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.710501' WHERE "spree_products"."id" = 997  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1192, 3545) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 997]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 997) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3543 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3544 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3545 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 997) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.793139' WHERE "spree_products"."id" = 997  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3543 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.794821' WHERE "spree_products"."id" = 997 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.795776' WHERE "spree_products"."id" = 997  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3544 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.796597' WHERE "spree_products"."id" = 997 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 997 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.797926' WHERE "spree_products"."id" = 997  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3545 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.798600' WHERE "spree_products"."id" = 997 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 997) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 997 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:18:47.800760' WHERE "spree_products"."id" = 997 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 997 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (110.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.806873' WHERE "spree_products"."id" = 998 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.918450' WHERE "spree_products"."id" = 998  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3546 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.920115' WHERE "spree_products"."id" = 998  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 998  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["product_id", nil], ["property_id", 899], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:18:47.926431', "product_id" = 998 WHERE "spree_product_properties"."id" = 1091 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["product_id", nil], ["property_id", 898], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:18:47.928912', "product_id" = 998 WHERE "spree_product_properties"."id" = 1092 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["product_id", nil], ["property_id", 900], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:18:47.933281', "product_id" = 998 WHERE "spree_product_properties"."id" = 1093 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 998) LIMIT 1 Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1263 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1263], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 998 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (998, 2204) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1260 AND "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2199 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2199]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2199], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1260], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2199]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2205]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2205 THEN 2199 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2199]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2205]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (998, 2205)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (998, 2199) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 998) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 998 AND "spree_option_types"."id" = 594 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 998) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["option_type_id", 594], ["position", 1], ["product_id", 998], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.958743' WHERE "spree_products"."id" = 998 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.959970' WHERE "spree_products"."id" = 998  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3547, 1190) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.962183' WHERE "spree_products"."id" = 998 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.963342' WHERE "spree_products"."id" = 998  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3548, 1191) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 594 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.965856' WHERE "spree_products"."id" = 998 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.966934' WHERE "spree_products"."id" = 998  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1192, 3549) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 998]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 998 AND "spree_option_types"."id" = 595 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 998) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["option_type_id", 595], ["position", 2], ["product_id", 998], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 595 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 595) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "black_white"], ["option_type_id", 595], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.979084' WHERE "spree_products"."id" = 998 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.981970' WHERE "spree_products"."id" = 998  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1193, 3550) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 595 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 595) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00], ["name", "colour"], ["option_type_id", 595], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:18:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.986780' WHERE "spree_products"."id" = 998 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 998], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:47.987901' WHERE "spree_products"."id" = 998  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1194, 3551) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 998]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 998) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3547 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3548 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3549 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3550 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3551 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 998) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.002166' WHERE "spree_products"."id" = 998  (0.6ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3547 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.003748' WHERE "spree_products"."id" = 998 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.004971' WHERE "spree_products"."id" = 998  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3548 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.005971' WHERE "spree_products"."id" = 998 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.006824' WHERE "spree_products"."id" = 998  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3549 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.008284' WHERE "spree_products"."id" = 998 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.009437' WHERE "spree_products"."id" = 998  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3550 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.010177' WHERE "spree_products"."id" = 998 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 998 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.011278' WHERE "spree_products"."id" = 998  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3551 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:18:48.011971' WHERE "spree_products"."id" = 998 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 998) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:18:48.015888' WHERE "spree_products"."id" = 998 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 998 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (375.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 998 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3546) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 998)) Excel Loader processing 0 rows  (0.0ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.4ms) commit transaction Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Booted Spree using version 1.1.3 SQL (5.9ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.3ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.411641' WHERE "spree_products"."id" = 999 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 999], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.413340' WHERE "spree_products"."id" = 999  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3552 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.415142' WHERE "spree_products"."id" = 999  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 999  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Created New Property # SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["product_id", nil], ["property_id", 901], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:33:32.432327', "product_id" = 999 WHERE "spree_product_properties"."id" = 1094 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 999) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1264], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 999 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (999, 2206) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1265 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1265], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (999, 2207) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 999) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.8ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 999 AND "spree_option_types"."id" = 596 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 999) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["option_type_id", 596], ["position", 1], ["product_id", 999], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 596) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "jpeg"], ["option_type_id", 596], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.578205' WHERE "spree_products"."id" = 999 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 999], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.579742' WHERE "spree_products"."id" = 999  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1195, 3553) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 596) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "PDF"], ["option_type_id", 596], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.587339' WHERE "spree_products"."id" = 999 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 999], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.588550' WHERE "spree_products"."id" = 999  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3554, 1196) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 596) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "PNG"], ["option_type_id", 596], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.593303' WHERE "spree_products"."id" = 999 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 999], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.594742' WHERE "spree_products"."id" = 999  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1197, 3555) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 999]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 999) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3553 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3554 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3555 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 999) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.623643' WHERE "spree_products"."id" = 999  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3553 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.624705' WHERE "spree_products"."id" = 999 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (1.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.625692' WHERE "spree_products"."id" = 999  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3554 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.627471' WHERE "spree_products"."id" = 999 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 999 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.628439' WHERE "spree_products"."id" = 999  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3555 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.629242' WHERE "spree_products"."id" = 999 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 999) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 999 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.631113', "count_on_hand" = 25 WHERE "spree_products"."id" = 999 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 999 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.638181' WHERE "spree_products"."id" = 1000 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1000], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.639094' WHERE "spree_products"."id" = 1000  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3556 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.640507' WHERE "spree_products"."id" = 1000  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1000  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["product_id", nil], ["property_id", 902], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:33:32.646743', "product_id" = 1000 WHERE "spree_product_properties"."id" = 1095 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1000) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1000 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2206, 1000) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1266 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1266], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2208, 1000) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" = 2206 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2206]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2206], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1264], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2206]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2209]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2209 THEN 2206 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2206]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2209]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" = 2209 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2209]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2209], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1264], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2209]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2210]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2210 THEN 2209 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2209]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2210]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2209, 1000)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2210, 1000) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1000) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1000 AND "spree_option_types"."id" = 596 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1000) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["option_type_id", 596], ["position", 1], ["product_id", 1000], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.681902' WHERE "spree_products"."id" = 1000 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1000], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.683500' WHERE "spree_products"."id" = 1000  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3557, 1195) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.686744' WHERE "spree_products"."id" = 1000 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1000], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.688181' WHERE "spree_products"."id" = 1000  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3558, 1196) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.691186' WHERE "spree_products"."id" = 1000 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1000], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.692591' WHERE "spree_products"."id" = 1000  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1197, 3559) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1000]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1000) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3557 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3558 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3559 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1000) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.791512' WHERE "spree_products"."id" = 1000  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3557 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.793363' WHERE "spree_products"."id" = 1000 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.794457' WHERE "spree_products"."id" = 1000  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3558 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.795329' WHERE "spree_products"."id" = 1000 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1000 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.796417' WHERE "spree_products"."id" = 1000  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3559 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.797570' WHERE "spree_products"."id" = 1000 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1000) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1000 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.800064', "count_on_hand" = 11 WHERE "spree_products"."id" = 1000 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1000 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (1.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.808225' WHERE "spree_products"."id" = 1001 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.809746' WHERE "spree_products"."id" = 1001  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3560 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.811121' WHERE "spree_products"."id" = 1001  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1001  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["product_id", nil], ["property_id", 903], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:33:32.819746', "product_id" = 1001 WHERE "spree_product_properties"."id" = 1096 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["product_id", nil], ["property_id", 902], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:33:32.822242', "product_id" = 1001 WHERE "spree_product_properties"."id" = 1097 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["product_id", nil], ["property_id", 904], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:33:32.825597', "product_id" = 1001 WHERE "spree_product_properties"."id" = 1098 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1001) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1267 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1267], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1001 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1001, 2211) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1264 AND "spree_taxons"."parent_id" = 2206 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2206]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2206], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1264], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2206]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2212]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2212 THEN 2206 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2206]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2212]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1001, 2212)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1001, 2206) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1001) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1001 AND "spree_option_types"."id" = 596 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1001) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["option_type_id", 596], ["position", 1], ["product_id", 1001], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.849869' WHERE "spree_products"."id" = 1001 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.851062' WHERE "spree_products"."id" = 1001  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1195, 3561) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.853464' WHERE "spree_products"."id" = 1001 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.854624' WHERE "spree_products"."id" = 1001  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3562, 1196) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 596 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.856843' WHERE "spree_products"."id" = 1001 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.858075' WHERE "spree_products"."id" = 1001  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1197, 3563) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1001]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1001 AND "spree_option_types"."id" = 597 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1001) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["option_type_id", 597], ["position", 2], ["product_id", 1001], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 597 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 597) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "black_white"], ["option_type_id", 597], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.871017' WHERE "spree_products"."id" = 1001 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.872481' WHERE "spree_products"."id" = 1001  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3564, 1198) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 597 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 597) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00], ["name", "colour"], ["option_type_id", 597], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:33:32 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.878519' WHERE "spree_products"."id" = 1001 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1001], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.879747' WHERE "spree_products"."id" = 1001  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1199, 3565) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1001]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1001) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3561 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3562 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3563 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3564 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3565 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1001) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.911444' WHERE "spree_products"."id" = 1001  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3561 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.912521' WHERE "spree_products"."id" = 1001 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.913834' WHERE "spree_products"."id" = 1001  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3562 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.914568' WHERE "spree_products"."id" = 1001 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.916011' WHERE "spree_products"."id" = 1001  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3563 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.916747' WHERE "spree_products"."id" = 1001 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.918463' WHERE "spree_products"."id" = 1001  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3564 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.920010' WHERE "spree_products"."id" = 1001 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1001 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.921212' WHERE "spree_products"."id" = 1001  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3565 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.922188' WHERE "spree_products"."id" = 1001 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1001) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:33:32.925875', "count_on_hand" = 53 WHERE "spree_products"."id" = 1001 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1001 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.5ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1001 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3560) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1001)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction Booted Spree using version 1.1.3 SQL (6.4ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (3.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.3ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (2.9ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:56.885135' WHERE "spree_products"."id" = 1002 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1002], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:56.886685' WHERE "spree_products"."id" = 1002  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3566 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:56.889075' WHERE "spree_products"."id" = 1002  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1002  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Created New Property # SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["product_id", nil], ["property_id", 905], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:34:56.927865', "product_id" = 1002 WHERE "spree_product_properties"."id" = 1099 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1002) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1268], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1002 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2213, 1002) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1269 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1269], ["updated_at", Mon, 01 Oct 2012 15:34:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2214, 1002) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1002) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1002 AND "spree_option_types"."id" = 598 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1002) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["option_type_id", 598], ["position", 1], ["product_id", 1002], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 598) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "jpeg"], ["option_type_id", 598], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.089932' WHERE "spree_products"."id" = 1002 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1002], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.091485' WHERE "spree_products"."id" = 1002  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1200, 3567) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 598) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "PDF"], ["option_type_id", 598], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.097615' WHERE "spree_products"."id" = 1002 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1002], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.098762' WHERE "spree_products"."id" = 1002  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3568, 1201) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 598) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "PNG"], ["option_type_id", 598], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.105173' WHERE "spree_products"."id" = 1002 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1002], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.106385' WHERE "spree_products"."id" = 1002  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1202, 3569) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1002]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1002) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3567 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3568 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (15.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3569 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1002) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.152889' WHERE "spree_products"."id" = 1002  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3567 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.153871' WHERE "spree_products"."id" = 1002 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.155225' WHERE "spree_products"."id" = 1002  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3568 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.156186' WHERE "spree_products"."id" = 1002 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1002 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.157435' WHERE "spree_products"."id" = 1002  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3569 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.158235' WHERE "spree_products"."id" = 1002 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1002) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1002 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.160836', "count_on_hand" = 25 WHERE "spree_products"."id" = 1002 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1002 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.169148' WHERE "spree_products"."id" = 1003 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1003], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.170268' WHERE "spree_products"."id" = 1003  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3570 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.171424' WHERE "spree_products"."id" = 1003  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1003  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["product_id", nil], ["property_id", 906], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:34:57.177502', "product_id" = 1003 WHERE "spree_product_properties"."id" = 1100 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1003) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1003 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1003, 2213) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1270 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1270], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1003, 2215) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" = 2213 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2213]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2213], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1268], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2213]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2216]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2216 THEN 2213 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2213]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2216]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" = 2216 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2216]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2216], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1268], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2216]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2217]] SQL (2.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2217 THEN 2216 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2216]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2217]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1003, 2216)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1003, 2217) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1003) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1003 AND "spree_option_types"."id" = 598 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1003) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["option_type_id", 598], ["position", 1], ["product_id", 1003], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.215189' WHERE "spree_products"."id" = 1003 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1003], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.216460' WHERE "spree_products"."id" = 1003  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3571, 1200) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.219272' WHERE "spree_products"."id" = 1003 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1003], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.220330' WHERE "spree_products"."id" = 1003  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3572, 1201) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.224017' WHERE "spree_products"."id" = 1003 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1003], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.225203' WHERE "spree_products"."id" = 1003  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3573, 1202) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1003]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1003) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3571 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3572 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3573 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1003) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.359067' WHERE "spree_products"."id" = 1003  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3571 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.360757' WHERE "spree_products"."id" = 1003 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.361772' WHERE "spree_products"."id" = 1003  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3572 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.362525' WHERE "spree_products"."id" = 1003 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1003 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.363458' WHERE "spree_products"."id" = 1003  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3573 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.364227' WHERE "spree_products"."id" = 1003 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1003) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1003 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.366729', "count_on_hand" = 11 WHERE "spree_products"."id" = 1003 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1003 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.372463' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.373483' WHERE "spree_products"."id" = 1004  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3574 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.374667' WHERE "spree_products"."id" = 1004  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1004  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["product_id", nil], ["property_id", 907], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:34:57.390278', "product_id" = 1004 WHERE "spree_product_properties"."id" = 1101 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["product_id", nil], ["property_id", 906], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:34:57.393436', "product_id" = 1004 WHERE "spree_product_properties"."id" = 1102 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["product_id", nil], ["property_id", 908], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:34:57.396279', "product_id" = 1004 WHERE "spree_product_properties"."id" = 1103 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1004) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1271 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1271], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1004 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1004, 2218) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1268 AND "spree_taxons"."parent_id" = 2213 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2213]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2213], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1268], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2213]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2219]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2219 THEN 2213 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2213]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2219]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1004, 2219)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1004, 2213) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1004) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1004 AND "spree_option_types"."id" = 598 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1004) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["option_type_id", 598], ["position", 1], ["product_id", 1004], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.420403' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.421264' WHERE "spree_products"."id" = 1004  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1200, 3575) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.423585' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.425135' WHERE "spree_products"."id" = 1004  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1201, 3576) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 598 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.427217' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.428172' WHERE "spree_products"."id" = 1004  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1202, 3577) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1004]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1004 AND "spree_option_types"."id" = 599 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1004) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["option_type_id", 599], ["position", 2], ["product_id", 1004], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 599 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 599) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "black_white"], ["option_type_id", 599], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.441661' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.443261' WHERE "spree_products"."id" = 1004  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3578, 1203) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 599 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 599) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00], ["name", "colour"], ["option_type_id", 599], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:34:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.447882' WHERE "spree_products"."id" = 1004 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1004], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.448965' WHERE "spree_products"."id" = 1004  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3579, 1204) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1004]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1004) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3575 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3576 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3577 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3578 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3579 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1004) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.477218' WHERE "spree_products"."id" = 1004  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3575 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.477674' WHERE "spree_products"."id" = 1004 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.478884' WHERE "spree_products"."id" = 1004  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3576 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.480445' WHERE "spree_products"."id" = 1004 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.481371' WHERE "spree_products"."id" = 1004  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3577 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.482191' WHERE "spree_products"."id" = 1004 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.483291' WHERE "spree_products"."id" = 1004  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3578 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.484074' WHERE "spree_products"."id" = 1004 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1004 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.485107' WHERE "spree_products"."id" = 1004  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3579 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.485853' WHERE "spree_products"."id" = 1004 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1004) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:34:57.487851', "count_on_hand" = 53 WHERE "spree_products"."id" = 1004 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1004 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (7.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1004 AND ("spree_variants".is_master = 't') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3574) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1004)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.1ms) commit transaction Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Booted Spree using version 1.1.3 SQL (7.3ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.4ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (13.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.078777' WHERE "spree_products"."id" = 1005 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1005], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.081066' WHERE "spree_products"."id" = 1005  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3580 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.082942' WHERE "spree_products"."id" = 1005  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1005  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["product_id", nil], ["property_id", 909], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1005, "updated_at" = '2012-10-01 15:35:26.119144' WHERE "spree_product_properties"."id" = 1104 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1005) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1272], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1005 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2220, 1005) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1273 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1273], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2221, 1005) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1005) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.9ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1005 AND "spree_option_types"."id" = 600 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1005) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["option_type_id", 600], ["position", 1], ["product_id", 1005], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 600) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "jpeg"], ["option_type_id", 600], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.295572' WHERE "spree_products"."id" = 1005 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1005], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.297128' WHERE "spree_products"."id" = 1005  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1205, 3581) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 600) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "PDF"], ["option_type_id", 600], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.303314' WHERE "spree_products"."id" = 1005 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1005], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.304573' WHERE "spree_products"."id" = 1005  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3582, 1206) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 600) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "PNG"], ["option_type_id", 600], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.309733' WHERE "spree_products"."id" = 1005 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1005], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.312384' WHERE "spree_products"."id" = 1005  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1207, 3583) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1005]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1005) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3581 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3582 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3583 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1005) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.360962' WHERE "spree_products"."id" = 1005  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3581 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.361730' WHERE "spree_products"."id" = 1005 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.362769' WHERE "spree_products"."id" = 1005  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3582 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.364132' WHERE "spree_products"."id" = 1005 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1005 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.365580' WHERE "spree_products"."id" = 1005  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3583 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.366385' WHERE "spree_products"."id" = 1005 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1005) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1005 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.368812', "count_on_hand" = 25 WHERE "spree_products"."id" = 1005 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1005 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.376385' WHERE "spree_products"."id" = 1006 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1006], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.377281' WHERE "spree_products"."id" = 1006  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3584 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.378910' WHERE "spree_products"."id" = 1006  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1006  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["product_id", nil], ["property_id", 910], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1006, "updated_at" = '2012-10-01 15:35:26.384569' WHERE "spree_product_properties"."id" = 1105 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1006) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1006 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1006, 2220) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1274 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1274], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1006, 2222) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" = 2220 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2220]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2220], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1272], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2220]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2223]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2223 THEN 2220 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2220]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2223]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" = 2223 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2223]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2223], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1272], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2223]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2224]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2224 THEN 2223 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2223]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2224]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1006, 2223)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1006, 2224) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1006) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1006 AND "spree_option_types"."id" = 600 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1006) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["option_type_id", 600], ["position", 1], ["product_id", 1006], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.416325' WHERE "spree_products"."id" = 1006 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1006], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.417618' WHERE "spree_products"."id" = 1006  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1205, 3585) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.420386' WHERE "spree_products"."id" = 1006 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1006], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.421549' WHERE "spree_products"."id" = 1006  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3586, 1206) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.424353' WHERE "spree_products"."id" = 1006 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1006], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.425726' WHERE "spree_products"."id" = 1006  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1207, 3587) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1006]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1006) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3585 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3586 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3587 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (16.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1006) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.534219' WHERE "spree_products"."id" = 1006  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3585 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.535221' WHERE "spree_products"."id" = 1006 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.536343' WHERE "spree_products"."id" = 1006  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3586 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.537141' WHERE "spree_products"."id" = 1006 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1006 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.538456' WHERE "spree_products"."id" = 1006  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3587 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.539184' WHERE "spree_products"."id" = 1006 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1006) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1006 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.541727', "count_on_hand" = 11 WHERE "spree_products"."id" = 1006 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1006 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.547958' WHERE "spree_products"."id" = 1007 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.549085' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3588 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.550506' WHERE "spree_products"."id" = 1007  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (18.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1007  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["product_id", nil], ["property_id", 911], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1007, "updated_at" = '2012-10-01 15:35:26.575859' WHERE "spree_product_properties"."id" = 1106 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["product_id", nil], ["property_id", 910], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1007, "updated_at" = '2012-10-01 15:35:26.579001' WHERE "spree_product_properties"."id" = 1107 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["product_id", nil], ["property_id", 912], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1007, "updated_at" = '2012-10-01 15:35:26.582313' WHERE "spree_product_properties"."id" = 1108 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1007) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1275 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1275], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1007 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2225, 1007) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1272 AND "spree_taxons"."parent_id" = 2220 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2220]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2220], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1272], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2220]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2226]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2226 THEN 2220 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2220]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2226]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2226, 1007)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2220, 1007) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1007) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1007 AND "spree_option_types"."id" = 600 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1007) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["option_type_id", 600], ["position", 1], ["product_id", 1007], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.607143' WHERE "spree_products"."id" = 1007 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.608354' WHERE "spree_products"."id" = 1007  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1205, 3589) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.610744' WHERE "spree_products"."id" = 1007 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.612006' WHERE "spree_products"."id" = 1007  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1206, 3590) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 600 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.614185' WHERE "spree_products"."id" = 1007 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.615224' WHERE "spree_products"."id" = 1007  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3591, 1207) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1007]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1007 AND "spree_option_types"."id" = 601 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1007) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["option_type_id", 601], ["position", 2], ["product_id", 1007], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 601 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 601) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "black_white"], ["option_type_id", 601], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.627058' WHERE "spree_products"."id" = 1007 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.628136' WHERE "spree_products"."id" = 1007  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3592, 1208) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 601 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 601) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00], ["name", "colour"], ["option_type_id", 601], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:35:26 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.635038' WHERE "spree_products"."id" = 1007 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1007], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.636179' WHERE "spree_products"."id" = 1007  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3593, 1209) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1007]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1007) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3589 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3590 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3591 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3592 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3593 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1007) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.664917' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3589 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.665814' WHERE "spree_products"."id" = 1007 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.667028' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3590 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.667875' WHERE "spree_products"."id" = 1007 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.669139' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3591 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.670216' WHERE "spree_products"."id" = 1007 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.671365' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3592 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.683477' WHERE "spree_products"."id" = 1007 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1007 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.684919' WHERE "spree_products"."id" = 1007  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3593 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.685700' WHERE "spree_products"."id" = 1007 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1007) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:35:26.688655', "count_on_hand" = 53 WHERE "spree_products"."id" = 1007 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1007 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.6ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1007 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3588) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1007)) Excel Loader processing 0 rows  (0.0ms) begin transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Booted Spree using version 1.1.3 SQL (7.4ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (2.3ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.5ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (3.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.169043' WHERE "spree_products"."id" = 1008 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1008], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.170787' WHERE "spree_products"."id" = 1008  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3594 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.172963' WHERE "spree_products"."id" = 1008  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1008  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["product_id", nil], ["property_id", 913], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:38:42.191539', "product_id" = 1008 WHERE "spree_product_properties"."id" = 1109 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1008) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1276], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1008 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1008, 2227) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1277 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1277], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1008, 2228) Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1008) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionType Exists (2.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1008 AND "spree_option_types"."id" = 602 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (13.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1008) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["option_type_id", 602], ["position", 1], ["product_id", 1008], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 602) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "jpeg"], ["option_type_id", 602], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.347784' WHERE "spree_products"."id" = 1008 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1008], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.348953' WHERE "spree_products"."id" = 1008  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1210, 3595) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 602) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "PDF"], ["option_type_id", 602], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.356696' WHERE "spree_products"."id" = 1008 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1008], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.357991' WHERE "spree_products"."id" = 1008  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3596, 1211) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 602) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "PNG"], ["option_type_id", 602], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.363847' WHERE "spree_products"."id" = 1008 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1008], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.365072' WHERE "spree_products"."id" = 1008  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3597, 1212) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1008]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1008) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3595 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3596 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3597 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1008) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.392661' WHERE "spree_products"."id" = 1008  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3595 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.393576' WHERE "spree_products"."id" = 1008 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.394668' WHERE "spree_products"."id" = 1008  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3596 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.395529' WHERE "spree_products"."id" = 1008 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1008 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.396731' WHERE "spree_products"."id" = 1008  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3597 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.397519' WHERE "spree_products"."id" = 1008 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1008) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1008 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.399879', "count_on_hand" = 25 WHERE "spree_products"."id" = 1008 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1008 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.406088' WHERE "spree_products"."id" = 1009 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1009], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.407128' WHERE "spree_products"."id" = 1009  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3598 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.408318' WHERE "spree_products"."id" = 1009  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1009  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["product_id", nil], ["property_id", 914], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:38:42.413559', "product_id" = 1009 WHERE "spree_product_properties"."id" = 1110 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1009) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1009 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1009, 2227) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1278 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1278], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1009, 2229) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" = 2227 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2227]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2227], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1276], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2227]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2230]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2230 THEN 2227 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2227]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2230]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" = 2230 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2230]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2230], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1276], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2230]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2231]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2231 THEN 2230 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2230]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2231]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1009, 2230)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1009, 2231) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1009) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1009 AND "spree_option_types"."id" = 602 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1009) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["option_type_id", 602], ["position", 1], ["product_id", 1009], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.448635' WHERE "spree_products"."id" = 1009 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1009], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.449655' WHERE "spree_products"."id" = 1009  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1210, 3599) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.452158' WHERE "spree_products"."id" = 1009 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1009], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.453167' WHERE "spree_products"."id" = 1009  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3600, 1211) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.455800' WHERE "spree_products"."id" = 1009 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1009], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.456857' WHERE "spree_products"."id" = 1009  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1212, 3601) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1009]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1009) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3599 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3600 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3601 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1009) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.548878' WHERE "spree_products"."id" = 1009  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3599 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.549926' WHERE "spree_products"."id" = 1009 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.551384' WHERE "spree_products"."id" = 1009  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3600 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.552296' WHERE "spree_products"."id" = 1009 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1009 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.553564' WHERE "spree_products"."id" = 1009  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3601 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.554513' WHERE "spree_products"."id" = 1009 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1009) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1009 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.557169', "count_on_hand" = 11 WHERE "spree_products"."id" = 1009 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1009 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.563981' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.565150' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3602 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.566522' WHERE "spree_products"."id" = 1010  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1010  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["product_id", nil], ["property_id", 915], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:38:42.573924', "product_id" = 1010 WHERE "spree_product_properties"."id" = 1111 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["product_id", nil], ["property_id", 914], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:38:42.576293', "product_id" = 1010 WHERE "spree_product_properties"."id" = 1112 Created New ProductProperty # Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["product_id", nil], ["property_id", 916], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:38:42.579490', "product_id" = 1010 WHERE "spree_product_properties"."id" = 1113 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1010) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1279 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1279], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1010 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2232, 1010) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1276 AND "spree_taxons"."parent_id" = 2227 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2227]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2227], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1276], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2227]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2233]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2233 THEN 2227 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2227]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2233]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2233, 1010)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2227, 1010) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1010) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1010 AND "spree_option_types"."id" = 602 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1010) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["option_type_id", 602], ["position", 1], ["product_id", 1010], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.606549' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.607931' WHERE "spree_products"."id" = 1010  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3603, 1210) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.610452' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.611566' WHERE "spree_products"."id" = 1010  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1211, 3604) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 602 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.613998' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.615187' WHERE "spree_products"."id" = 1010  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1212, 3605) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1010]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1010 AND "spree_option_types"."id" = 603 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1010) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["option_type_id", 603], ["position", 2], ["product_id", 1010], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 603 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 603) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "black_white"], ["option_type_id", 603], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.628025' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.629102' WHERE "spree_products"."id" = 1010  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1213, 3606) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 603 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 603) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00], ["name", "colour"], ["option_type_id", 603], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:38:42 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.633806' WHERE "spree_products"."id" = 1010 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1010], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.634942' WHERE "spree_products"."id" = 1010  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3607, 1214) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1010]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1010) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3603 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3604 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3605 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3606 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3607 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1010) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.663911' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3603 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.664947' WHERE "spree_products"."id" = 1010 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.666151' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3604 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.667435' WHERE "spree_products"."id" = 1010 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.668733' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3605 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.669636' WHERE "spree_products"."id" = 1010 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.671063' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3606 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.671898' WHERE "spree_products"."id" = 1010 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1010 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.673063' WHERE "spree_products"."id" = 1010  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3607 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.673899' WHERE "spree_products"."id" = 1010 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1010) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:38:42.676589', "count_on_hand" = 53 WHERE "spree_products"."id" = 1010 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1010 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1010 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3602) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1010)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Booted Spree using version 1.1.3 SQL (16.2ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.060632' WHERE "spree_products"."id" = 1011 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1011], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.063104' WHERE "spree_products"."id" = 1011  (0.6ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3608 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.065520' WHERE "spree_products"."id" = 1011  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1011  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["product_id", nil], ["property_id", 917], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:42:39.083182', "product_id" = 1011 WHERE "spree_product_properties"."id" = 1114 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1011) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1280], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1011 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1011, 2234) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1281 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1281], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1011, 2235) Current value to assign : Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1011) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionType Exists (11.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1011 AND "spree_option_types"."id" = 604 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1011) ORDER BY position DESC LIMIT 1 SQL (10.7ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["option_type_id", 604], ["position", 1], ["product_id", 1011], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (1.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 604) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "jpeg"], ["option_type_id", 604], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.252635' WHERE "spree_products"."id" = 1011 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1011], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.253550' WHERE "spree_products"."id" = 1011  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3609, 1215) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 604) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "PDF"], ["option_type_id", 604], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.262455' WHERE "spree_products"."id" = 1011 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1011], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.263659' WHERE "spree_products"."id" = 1011  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3610, 1216) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 604) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "PNG"], ["option_type_id", 604], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.267561' WHERE "spree_products"."id" = 1011 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1011], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.268846' WHERE "spree_products"."id" = 1011  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3611, 1217) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1011]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1011) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3609 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3610 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3611 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1011) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.297300' WHERE "spree_products"."id" = 1011  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3609 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.298517' WHERE "spree_products"."id" = 1011 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.299443' WHERE "spree_products"."id" = 1011  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3610 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.300398' WHERE "spree_products"."id" = 1011 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1011 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.301565' WHERE "spree_products"."id" = 1011  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3611 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.302271' WHERE "spree_products"."id" = 1011 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1011) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1011 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:42:39.304499' WHERE "spree_products"."id" = 1011 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1011 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.310919' WHERE "spree_products"."id" = 1012 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1012], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.312011' WHERE "spree_products"."id" = 1012  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3612 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.313323' WHERE "spree_products"."id" = 1012  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1012  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["product_id", nil], ["property_id", 918], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:42:39.318636', "product_id" = 1012 WHERE "spree_product_properties"."id" = 1115 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1012) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1012 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2234, 1012) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1282 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1282], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2236, 1012) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" = 2234 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2234]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2234], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1280], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2234]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2237]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2237 THEN 2234 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2234]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2237]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" = 2237 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2237]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2237], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1280], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2237]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2238]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2238 THEN 2237 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2237]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2238]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2237, 1012)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2238, 1012) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1012) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1012 AND "spree_option_types"."id" = 604 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1012) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["option_type_id", 604], ["position", 1], ["product_id", 1012], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.358539' WHERE "spree_products"."id" = 1012 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1012], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.360012' WHERE "spree_products"."id" = 1012  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3613, 1215) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.362196' WHERE "spree_products"."id" = 1012 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1012], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.363418' WHERE "spree_products"."id" = 1012  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1216, 3614) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.366050' WHERE "spree_products"."id" = 1012 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1012], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.367031' WHERE "spree_products"."id" = 1012  (0.2ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1217, 3615) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1012]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1012) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3613 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3614 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3615 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1012) LIMIT 1  (1.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.460462' WHERE "spree_products"."id" = 1012  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3613 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.461374' WHERE "spree_products"."id" = 1012 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.462497' WHERE "spree_products"."id" = 1012  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3614 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.463541' WHERE "spree_products"."id" = 1012 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1012 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.464536' WHERE "spree_products"."id" = 1012  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3615 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.465222' WHERE "spree_products"."id" = 1012 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1012) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1012 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:42:39.467638' WHERE "spree_products"."id" = 1012 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1012 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.475152' WHERE "spree_products"."id" = 1013 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.476244' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3616 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.477447' WHERE "spree_products"."id" = 1013  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1013  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["product_id", nil], ["property_id", 919], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:42:39.483512', "product_id" = 1013 WHERE "spree_product_properties"."id" = 1116 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["product_id", nil], ["property_id", 918], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:42:39.485639', "product_id" = 1013 WHERE "spree_product_properties"."id" = 1117 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["product_id", nil], ["property_id", 920], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["value", nil]]  (0.6ms) UPDATE "spree_product_properties" SET "updated_at" = '2012-10-01 15:42:39.488578', "product_id" = 1013 WHERE "spree_product_properties"."id" = 1118 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1013) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1283 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1283], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1013 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2239, 1013) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1280 AND "spree_taxons"."parent_id" = 2234 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2234]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2234], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1280], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2234]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2240]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2240 THEN 2234 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2234]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2240]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2240, 1013)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2234, 1013) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1013) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1013 AND "spree_option_types"."id" = 604 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1013) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["option_type_id", 604], ["position", 1], ["product_id", 1013], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.516328' WHERE "spree_products"."id" = 1013 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.518020' WHERE "spree_products"."id" = 1013  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3617, 1215) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.520568' WHERE "spree_products"."id" = 1013 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.521716' WHERE "spree_products"."id" = 1013  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3618, 1216) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 604 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.524517' WHERE "spree_products"."id" = 1013 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.525439' WHERE "spree_products"."id" = 1013  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3619, 1217) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1013]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1013 AND "spree_option_types"."id" = 605 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1013) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["option_type_id", 605], ["position", 2], ["product_id", 1013], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 605 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 605) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "black_white"], ["option_type_id", 605], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.537898' WHERE "spree_products"."id" = 1013 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.539495' WHERE "spree_products"."id" = 1013  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1218, 3620) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 605 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 605) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00], ["name", "colour"], ["option_type_id", 605], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:42:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.543402' WHERE "spree_products"."id" = 1013 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1013], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.544616' WHERE "spree_products"."id" = 1013  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1219, 3621) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1013]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1013) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3617 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3618 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3619 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3620 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3621 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1013) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.587385' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3617 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.588630' WHERE "spree_products"."id" = 1013 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.589875' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3618 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.590848' WHERE "spree_products"."id" = 1013 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.591807' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3619 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.592640' WHERE "spree_products"."id" = 1013 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.594153' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3620 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.594851' WHERE "spree_products"."id" = 1013 Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1013 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.596363' WHERE "spree_products"."id" = 1013  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3621 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:42:39.597636' WHERE "spree_products"."id" = 1013 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1013) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:42:39.601231' WHERE "spree_products"."id" = 1013 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1013 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1013 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3616) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1013)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Exception attempting to find a record for [DEMO_001] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Exception attempting to find a record for [DEMO_002] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_002fixtures/images/DEMO_002_Powerstation.jpg] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Exception attempting to find a record for [DEMO_003] on Spree::Product.SKU ["/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `initialize'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `new'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/sqlite3-1.3.6/lib/sqlite3/database.rb:91:in `prepare'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:246:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:242:in `exec_query'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite_adapter.rb:467:in `select'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:18:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache.rb:63:in `select_all'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:38:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/querying.rb:37:in `find_by_sql'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:171:in `exec_queries'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/explain.rb:33:in `logging_query_plan'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:378:in `find_first'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:122:in `first'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:202:in `get_record_by'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:84:in `process'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:118:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:107:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/polyglot-0.3.3/lib/polyglot.rb:63:in `each_with_index'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:133:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `upto'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/worksheet.rb:132:in `each'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/spreadsheet-0.7.3/lib/spreadsheet/excel/worksheet.rb:35:in `each'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `each_with_index'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:83:in `perform_excel_load'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/excel_loader.rb:81:in `perform_excel_load'", "/home/stattert/SoftwareDev/git/datashift/lib/loaders/loader_base.rb:102:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/lib/loaders/spree/image_loader.rb:62:in `perform_load'", "/home/stattert/SoftwareDev/git/datashift_spree/spec/spree_images_loader_spec.rb:82", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `instance_eval'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:113:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:253:in `with_around_each_hooks'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example.rb:110:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:378:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:374:in `run_examples'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/example_group.rb:360:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `map'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:28:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/reporter.rb:34:in `report'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:25:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `autorun'", "/home/stattert/.rvm/gems/ree-1.8.7-2012.02/bin/rspec:23"] # Failed to save row [DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg]  (0.0ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Booted Spree using version 1.1.3 SQL (9.6ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (13.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.518806' WHERE "spree_products"."id" = 1014 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1014], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.520587' WHERE "spree_products"."id" = 1014  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3622 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.522625' WHERE "spree_products"."id" = 1014  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1014  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["product_id", nil], ["property_id", 921], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1014, "updated_at" = '2012-10-01 15:45:12.539163' WHERE "spree_product_properties"."id" = 1119 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1014) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1284], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1014 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2241, 1014) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1285 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1285], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2242, 1014) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1014) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionType Exists (1.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1014 AND "spree_option_types"."id" = 606 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1014) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["option_type_id", 606], ["position", 1], ["product_id", 1014], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 606) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "jpeg"], ["option_type_id", 606], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.691327' WHERE "spree_products"."id" = 1014 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1014], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.694558' WHERE "spree_products"."id" = 1014  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1220, 3623) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 606) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "PDF"], ["option_type_id", 606], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.701673' WHERE "spree_products"."id" = 1014 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1014], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.703161' WHERE "spree_products"."id" = 1014  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3624, 1221) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 606) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "PNG"], ["option_type_id", 606], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.707753' WHERE "spree_products"."id" = 1014 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1014], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.708809' WHERE "spree_products"."id" = 1014  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1222, 3625) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1014]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1014) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3623 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3624 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3625 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1014) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.733282' WHERE "spree_products"."id" = 1014  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3623 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.734283' WHERE "spree_products"."id" = 1014 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.735322' WHERE "spree_products"."id" = 1014  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3624 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.736042' WHERE "spree_products"."id" = 1014 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.737189' WHERE "spree_products"."id" = 1014  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3625 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.738051' WHERE "spree_products"."id" = 1014 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1014) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.740188', "count_on_hand" = 25 WHERE "spree_products"."id" = 1014 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1014 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.9ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.746587' WHERE "spree_products"."id" = 1015 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1015], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.747850' WHERE "spree_products"."id" = 1015  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3626 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.749529' WHERE "spree_products"."id" = 1015  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1015  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["product_id", nil], ["property_id", 922], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1015, "updated_at" = '2012-10-01 15:45:12.754851' WHERE "spree_product_properties"."id" = 1120 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1015) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1015 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2241, 1015) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1286 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1286], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2243, 1015) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" = 2241 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2241]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2241], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1284], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2241]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2244]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2244 THEN 2241 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2241]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2244]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" = 2244 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2244]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2244], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1284], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2244]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2245]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2245 THEN 2244 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2244]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2245]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2244, 1015)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2245, 1015) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1015) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1015 AND "spree_option_types"."id" = 606 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1015) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["option_type_id", 606], ["position", 1], ["product_id", 1015], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.785555' WHERE "spree_products"."id" = 1015 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1015], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.786692' WHERE "spree_products"."id" = 1015  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1220, 3627) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.789300' WHERE "spree_products"."id" = 1015 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1015], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.790464' WHERE "spree_products"."id" = 1015  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3628, 1221) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.793104' WHERE "spree_products"."id" = 1015 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1015], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.794297' WHERE "spree_products"."id" = 1015  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3629, 1222) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1015]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1015) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3627 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3628 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3629 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1015) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.877853' WHERE "spree_products"."id" = 1015  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3627 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.879384' WHERE "spree_products"."id" = 1015 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.881085' WHERE "spree_products"."id" = 1015  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3628 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.882046' WHERE "spree_products"."id" = 1015 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.883343' WHERE "spree_products"."id" = 1015  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3629 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.884309' WHERE "spree_products"."id" = 1015 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1015) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.886659', "count_on_hand" = 11 WHERE "spree_products"."id" = 1015 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1015 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.893502' WHERE "spree_products"."id" = 1016 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.894577' WHERE "spree_products"."id" = 1016  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3630 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.895854' WHERE "spree_products"."id" = 1016  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1016  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["product_id", nil], ["property_id", 923], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1016, "updated_at" = '2012-10-01 15:45:12.902576' WHERE "spree_product_properties"."id" = 1121 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["product_id", nil], ["property_id", 922], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1016, "updated_at" = '2012-10-01 15:45:12.906216' WHERE "spree_product_properties"."id" = 1122 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["product_id", nil], ["property_id", 924], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1016, "updated_at" = '2012-10-01 15:45:12.909735' WHERE "spree_product_properties"."id" = 1123 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1016) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1287 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1287], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1016 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2246, 1016) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1284 AND "spree_taxons"."parent_id" = 2241 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2241]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2241], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1284], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2241]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2247]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2247 THEN 2241 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2241]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2247]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2247, 1016)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2241, 1016) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1016) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1016 AND "spree_option_types"."id" = 606 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1016) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["option_type_id", 606], ["position", 1], ["product_id", 1016], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.934854' WHERE "spree_products"."id" = 1016 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.936579' WHERE "spree_products"."id" = 1016  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1220, 3631) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.938854' WHERE "spree_products"."id" = 1016 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.940156' WHERE "spree_products"."id" = 1016  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3632, 1221) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 606 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.942806' WHERE "spree_products"."id" = 1016 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.944123' WHERE "spree_products"."id" = 1016  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1222, 3633) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1016]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1016 AND "spree_option_types"."id" = 607 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1016) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["option_type_id", 607], ["position", 2], ["product_id", 1016], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 607 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 607) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "black_white"], ["option_type_id", 607], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.957073' WHERE "spree_products"."id" = 1016 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.957854' WHERE "spree_products"."id" = 1016  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3634, 1223) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 607 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 607) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00], ["name", "colour"], ["option_type_id", 607], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:45:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.962957' WHERE "spree_products"."id" = 1016 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1016], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.964054' WHERE "spree_products"."id" = 1016  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3635, 1224) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1016]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1016) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3631 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3632 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3633 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3634 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3635 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1016) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.991304' WHERE "spree_products"."id" = 1016  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3631 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.992485' WHERE "spree_products"."id" = 1016 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.993793' WHERE "spree_products"."id" = 1016  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3632 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.994660' WHERE "spree_products"."id" = 1016 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.995797' WHERE "spree_products"."id" = 1016  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3633 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.996651' WHERE "spree_products"."id" = 1016 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.997757' WHERE "spree_products"."id" = 1016  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3634 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.998591' WHERE "spree_products"."id" = 1016 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:12.999506' WHERE "spree_products"."id" = 1016  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3635 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:13.000588' WHERE "spree_products"."id" = 1016 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1016) LIMIT 1  (0.7ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:13.003725', "count_on_hand" = 53 WHERE "spree_products"."id" = 1016 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1016 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.1ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3630) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1016)) Excel Loader processing 0 rows  (0.0ms) begin transaction Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3622 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3622) ORDER BY position DESC LIMIT 1 SQL (1.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:45:13 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3622], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1014 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:13.427190' WHERE "spree_products"."id" = 1014  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1014 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25 WHERE "spree_products"."id" = 1014 Row DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg succesfully SAVED : ID 3622 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3626 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3626) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:45:13 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3626], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1015 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:19.368849' WHERE "spree_products"."id" = 1015  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1015 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11 WHERE "spree_products"."id" = 1015 Row DEMO_002fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 3626 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3630 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3630) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:45:19 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3630], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1016 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:45:19.962268' WHERE "spree_products"."id" = 1016  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53 WHERE "spree_products"."id" = 1016 Row DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 3630  (4.4ms) commit transaction Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1016 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3630) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1016)) Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3630) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1016)) ORDER BY "spree_assets".position Booted Spree using version 1.1.3 SQL (7.0ms) DELETE FROM "spree_products" SQL (4.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.6ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (1.6ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.628059' WHERE "spree_products"."id" = 1017 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1017], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.630126' WHERE "spree_products"."id" = 1017  (0.6ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3636 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.632157' WHERE "spree_products"."id" = 1017  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1017  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Created New Property # SQL (0.6ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["product_id", nil], ["property_id", 925], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1017, "updated_at" = '2012-10-01 15:48:01.647290' WHERE "spree_product_properties"."id" = 1124 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1288 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1288], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1017 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2248, 1017) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1289 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1289], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2249, 1017) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::OptionType Exists (1.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1017 AND "spree_option_types"."id" = 608 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1017) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["option_type_id", 608], ["position", 1], ["product_id", 1017], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::OptionValue Load (13.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 608) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "jpeg"], ["option_type_id", 608], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.726111' WHERE "spree_products"."id" = 1017 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1017], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.727329' WHERE "spree_products"."id" = 1017  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3637, 1225) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 608) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "PDF"], ["option_type_id", 608], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.734622' WHERE "spree_products"."id" = 1017 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1017], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.735598' WHERE "spree_products"."id" = 1017  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3638, 1226) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 608) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["name", "PNG"], ["option_type_id", 608], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.741511' WHERE "spree_products"."id" = 1017 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1017], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.742749' WHERE "spree_products"."id" = 1017  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3639, 1227) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1017]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3637 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3638 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3639 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.843216' WHERE "spree_products"."id" = 1017  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3637 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.844293' WHERE "spree_products"."id" = 1017 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.845435' WHERE "spree_products"."id" = 1017  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3638 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.846226' WHERE "spree_products"."id" = 1017 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1017 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.847619' WHERE "spree_products"."id" = 1017  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3639 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:01.848526' WHERE "spree_products"."id" = 1017 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3636 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3636) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:01 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3636], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row DEMO_001Demo Product for AR Loaderblah blah14/02/2011399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7fixtures/images/DEMO_001_ror_bag.jpeg to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1017) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:48:02.236166' WHERE "spree_products"."id" = 1017 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.251113' WHERE "spree_products"."id" = 1018 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1018], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.269092' WHERE "spree_products"."id" = 1018  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3640 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.271212' WHERE "spree_products"."id" = 1018  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1018  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["product_id", nil], ["property_id", 926], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1018, "updated_at" = '2012-10-01 15:48:02.280768' WHERE "spree_product_properties"."id" = 1125 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1288 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1018 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1018, 2248) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1290 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1290], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1018, 2250) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1291 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1291], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1018, 2251) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1018 AND "spree_option_types"."id" = 608 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1018) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["option_type_id", 608], ["position", 1], ["product_id", 1018], ["updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.312623' WHERE "spree_products"."id" = 1018 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1018], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.313981' WHERE "spree_products"."id" = 1018  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1225, 3641) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.317300' WHERE "spree_products"."id" = 1018 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1018], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.318503' WHERE "spree_products"."id" = 1018  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1226, 3642) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.322019' WHERE "spree_products"."id" = 1018 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1018], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.323020' WHERE "spree_products"."id" = 1018  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1227, 3643) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1018]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3641 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3642 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3643 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.337609' WHERE "spree_products"."id" = 1018  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3641 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.338542' WHERE "spree_products"."id" = 1018 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.339879' WHERE "spree_products"."id" = 1018  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3642 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.340825' WHERE "spree_products"."id" = 1018 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1018 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.342428' WHERE "spree_products"."id" = 1018  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3643 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:02.343300' WHERE "spree_products"."id" = 1018 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3640 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3640) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:02 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3640], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row DEMO_002Demo Excel Load via Jrubyless blah14/05/201110030test_pp_003Paintings|Landscape|Oilsmime_type:jpeg, PDF,PNG5|4|2fixtures/images/DEMO_002_Powerstation.jpg to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1018) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:48:07.627708' WHERE "spree_products"."id" = 1018 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 07 Jan 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.636230' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.637376' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3644 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.638699' WHERE "spree_products"."id" = 1019  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1019  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["product_id", nil], ["property_id", 927], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1019, "updated_at" = '2012-10-01 15:48:07.661527' WHERE "spree_product_properties"."id" = 1126 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["product_id", nil], ["property_id", 926], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1019, "updated_at" = '2012-10-01 15:48:07.665197' WHERE "spree_product_properties"."id" = 1127 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["product_id", nil], ["property_id", 928], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["value", nil]]  (0.5ms) UPDATE "spree_product_properties" SET "product_id" = 1019, "updated_at" = '2012-10-01 15:48:07.668237' WHERE "spree_product_properties"."id" = 1128 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1292 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1292], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1019 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2252, 1019) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1019 AND "spree_option_types"."id" = 608 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1019) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["option_type_id", 608], ["position", 1], ["product_id", 1019], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.684644' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.685836' WHERE "spree_products"."id" = 1019  (0.3ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1225, 3645) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.688615' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.689682' WHERE "spree_products"."id" = 1019  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1226, 3646) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 608 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.691998' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.693223' WHERE "spree_products"."id" = 1019  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3647, 1227) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1019]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1019 AND "spree_option_types"."id" = 609 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1019) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["option_type_id", 609], ["position", 2], ["product_id", 1019], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 609 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 609) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "black_white"], ["option_type_id", 609], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.707163' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.708377' WHERE "spree_products"."id" = 1019  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1228, 3648) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 609 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 609) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["name", "colour"], ["option_type_id", 609], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.713295' WHERE "spree_products"."id" = 1019 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1019], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.714363' WHERE "spree_products"."id" = 1019  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1229, 3649) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1019]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3645 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3646 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3647 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3648 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3649 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.741324' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3645 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.742215' WHERE "spree_products"."id" = 1019 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.743358' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3646 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.743928' WHERE "spree_products"."id" = 1019 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.745236' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3647 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.745948' WHERE "spree_products"."id" = 1019 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.747057' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3648 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.748044' WHERE "spree_products"."id" = 1019 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1019 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.749009' WHERE "spree_products"."id" = 1019  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3649 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:07.750280' WHERE "spree_products"."id" = 1019 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3644 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3644) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:07 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3644], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row DEMO_003Demo third row in futuremore blah blah01/07/201250.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawingsmime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18fixtures/images/DEMO_003_ror_mug.jpeg to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1019) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:48:08.388976' WHERE "spree_products"."id" = 1019  (10.3ms) commit transaction  (0.6ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3636) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1017)) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3636 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1017 AND ("spree_variants".is_master = 't') LIMIT 1  (0.7ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3636) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1017)) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1018 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3640) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1018)) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1019 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3644) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1019)) SQL (3.1ms) DELETE FROM "spree_products" SQL (2.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (16.3ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.675167' WHERE "spree_products"."id" = 1020 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1020], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.676391' WHERE "spree_products"."id" = 1020  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3650 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.692037' WHERE "spree_products"."id" = 1020  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1020  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["product_id", nil], ["property_id", 929], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1020, "updated_at" = '2012-10-01 15:48:08.702482' WHERE "spree_product_properties"."id" = 1129 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1293 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1293], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1020 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2253, 1020) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1294 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1294], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2254, 1020) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::OptionType Exists (2.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1020 AND "spree_option_types"."id" = 610 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1020) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["option_type_id", 610], ["position", 1], ["product_id", 1020], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 610) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "jpeg"], ["option_type_id", 610], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.735031' WHERE "spree_products"."id" = 1020 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1020], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.736384' WHERE "spree_products"."id" = 1020  (0.6ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1230, 3651) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 610) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "PDF"], ["option_type_id", 610], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.740988' WHERE "spree_products"."id" = 1020 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1020], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.741897' WHERE "spree_products"."id" = 1020  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3652, 1231) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 610) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["name", "PNG"], ["option_type_id", 610], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.766801' WHERE "spree_products"."id" = 1020 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1020], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.767868' WHERE "spree_products"."id" = 1020  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3653, 1232) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1020]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3651 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3652 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3653 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.923878' WHERE "spree_products"."id" = 1020  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3651 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.925303' WHERE "spree_products"."id" = 1020 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.926455' WHERE "spree_products"."id" = 1020  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3652 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.927182' WHERE "spree_products"."id" = 1020 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1020 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.928800' WHERE "spree_products"."id" = 1020  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3653 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:08.929640' WHERE "spree_products"."id" = 1020 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3650 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3650) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:08 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3650], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1020) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:48:09.325687' WHERE "spree_products"."id" = 1020 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7fixtures/images/DEMO_001_ror_bag.jpeg succesfully SAVED : ID 1020 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.339342' WHERE "spree_products"."id" = 1021 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1021], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.360068' WHERE "spree_products"."id" = 1021  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3654 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.362273' WHERE "spree_products"."id" = 1021  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1021  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["product_id", nil], ["property_id", 930], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1021, "updated_at" = '2012-10-01 15:48:09.372917' WHERE "spree_product_properties"."id" = 1130 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1293 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1021 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1021, 2253) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1295 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1295], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1021, 2255) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1296 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1296], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1021, 2256) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1021 AND "spree_option_types"."id" = 610 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1021) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["option_type_id", 610], ["position", 1], ["product_id", 1021], ["updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.403321' WHERE "spree_products"."id" = 1021 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1021], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.406299' WHERE "spree_products"."id" = 1021  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3655, 1230) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.409490' WHERE "spree_products"."id" = 1021 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1021], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.410857' WHERE "spree_products"."id" = 1021  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1231, 3656) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.413711' WHERE "spree_products"."id" = 1021 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1021], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.415040' WHERE "spree_products"."id" = 1021  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1232, 3657) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1021]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3655 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3656 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3657 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.429461' WHERE "spree_products"."id" = 1021  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3655 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.430577' WHERE "spree_products"."id" = 1021 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.432393' WHERE "spree_products"."id" = 1021  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3656 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.433199' WHERE "spree_products"."id" = 1021 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1021 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.434653' WHERE "spree_products"."id" = 1021  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3657 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:09.435685' WHERE "spree_products"."id" = 1021 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3654 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3654) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:09 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3654], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1021) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:48:14.675478' WHERE "spree_products"."id" = 1021 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Landscape|Oilsmime_type:jpeg, PDF,PNG5|4|2fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 1021 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.684478' WHERE "spree_products"."id" = 1022 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.685478' WHERE "spree_products"."id" = 1022  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3658 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.686791' WHERE "spree_products"."id" = 1022  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1022  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["product_id", nil], ["property_id", 931], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1022, "updated_at" = '2012-10-01 15:48:14.713479' WHERE "spree_product_properties"."id" = 1131 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["product_id", nil], ["property_id", 930], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1022, "updated_at" = '2012-10-01 15:48:14.716622' WHERE "spree_product_properties"."id" = 1132 Created New ProductProperty # Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["product_id", nil], ["property_id", 932], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1022, "updated_at" = '2012-10-01 15:48:14.720419' WHERE "spree_product_properties"."id" = 1133 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1297 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1297], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1022 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2257, 1022) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1022 AND "spree_option_types"."id" = 610 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1022) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["option_type_id", 610], ["position", 1], ["product_id", 1022], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.739283' WHERE "spree_products"."id" = 1022 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.740687' WHERE "spree_products"."id" = 1022  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3659, 1230) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.743303' WHERE "spree_products"."id" = 1022 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.744479' WHERE "spree_products"."id" = 1022  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1231, 3660) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 610 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.747456' WHERE "spree_products"."id" = 1022 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.748678' WHERE "spree_products"."id" = 1022  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3661, 1232) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1022]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1022 AND "spree_option_types"."id" = 611 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1022) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["option_type_id", 611], ["position", 2], ["product_id", 1022], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 611 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 611) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "black_white"], ["option_type_id", 611], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.760228' WHERE "spree_products"."id" = 1022 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.761303' WHERE "spree_products"."id" = 1022  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3662, 1233) Spree::OptionValue Load (2.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 611 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 611) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["name", "colour"], ["option_type_id", 611], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.768223' WHERE "spree_products"."id" = 1022 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1022], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.769315' WHERE "spree_products"."id" = 1022  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3663, 1234) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1022]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3659 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3660 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3661 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3662 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3663 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.800966' WHERE "spree_products"."id" = 1022  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3659 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.802129' WHERE "spree_products"."id" = 1022 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.803474' WHERE "spree_products"."id" = 1022  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3660 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.804190' WHERE "spree_products"."id" = 1022 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.805259' WHERE "spree_products"."id" = 1022  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3661 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.806052' WHERE "spree_products"."id" = 1022 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.806955' WHERE "spree_products"."id" = 1022  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3662 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.807947' WHERE "spree_products"."id" = 1022 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1022 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.809378' WHERE "spree_products"."id" = 1022  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3663 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:14.810642' WHERE "spree_products"."id" = 1022 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1 Spree::Image Load (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3658 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3658) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:14 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3658], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1022) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:48:15.202831' WHERE "spree_products"."id" = 1022 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawingsmime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18fixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 1022 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (7.2ms) commit transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3650) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1020)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1020 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3650) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1020)) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1021 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3654) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1021)) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1022 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3658) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1022))  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.8ms) DELETE FROM "spree_products" SQL (1.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (2.1ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (3.2ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.515464' WHERE "spree_products"."id" = 1023 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1023], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.516988' WHERE "spree_products"."id" = 1023  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3664 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.517905' WHERE "spree_products"."id" = 1023  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1023  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Created New Property # SQL (0.8ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["product_id", nil], ["property_id", 933], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1023, "updated_at" = '2012-10-01 15:48:15.545045' WHERE "spree_product_properties"."id" = 1134 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1023) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1298], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1023 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2258, 1023) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1299 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1299], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2259, 1023) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1023) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1023 AND "spree_option_types"."id" = 612 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1023) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["option_type_id", 612], ["position", 1], ["product_id", 1023], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 612) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "jpeg"], ["option_type_id", 612], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.573351' WHERE "spree_products"."id" = 1023 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1023], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.574491' WHERE "spree_products"."id" = 1023  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1235, 3665) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 612) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "PDF"], ["option_type_id", 612], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.579006' WHERE "spree_products"."id" = 1023 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1023], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.580101' WHERE "spree_products"."id" = 1023  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1236, 3666) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 612) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "PNG"], ["option_type_id", 612], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.596491' WHERE "spree_products"."id" = 1023 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1023], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.598006' WHERE "spree_products"."id" = 1023  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3667, 1237) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1023]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1023) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3665 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3666 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3667 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1023) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.611251' WHERE "spree_products"."id" = 1023  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3665 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.612411' WHERE "spree_products"."id" = 1023 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.613492' WHERE "spree_products"."id" = 1023  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3666 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.614162' WHERE "spree_products"."id" = 1023 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.615338' WHERE "spree_products"."id" = 1023  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3667 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.616111' WHERE "spree_products"."id" = 1023 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1023) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:48:15.619997' WHERE "spree_products"."id" = 1023 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1023 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.629649' WHERE "spree_products"."id" = 1024 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1024], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.630998' WHERE "spree_products"."id" = 1024  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3668 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.632427' WHERE "spree_products"."id" = 1024  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1024  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["product_id", nil], ["property_id", 934], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1024, "updated_at" = '2012-10-01 15:48:15.639386' WHERE "spree_product_properties"."id" = 1135 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1024) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1024 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2258, 1024) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1300 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1300], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2260, 1024) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" = 2258 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2258]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2258], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1298], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2258]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2261]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2261 THEN 2258 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2258]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2261]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" = 2261 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2261]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2261], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1298], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2261]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2262]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2262 THEN 2261 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2261]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2262]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2261, 1024)  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2262, 1024) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1024) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1024 AND "spree_option_types"."id" = 612 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1024) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["option_type_id", 612], ["position", 1], ["product_id", 1024], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.671997' WHERE "spree_products"."id" = 1024 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1024], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.673272' WHERE "spree_products"."id" = 1024  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1235, 3669) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.675679' WHERE "spree_products"."id" = 1024 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1024], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.676493' WHERE "spree_products"."id" = 1024  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3670, 1236) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.679339' WHERE "spree_products"."id" = 1024 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1024], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.680395' WHERE "spree_products"."id" = 1024  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1237, 3671) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1024]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1024) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3669 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3670 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3671 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1024) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.693958' WHERE "spree_products"."id" = 1024  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3669 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.694734' WHERE "spree_products"."id" = 1024 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.696249' WHERE "spree_products"."id" = 1024  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3670 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.697121' WHERE "spree_products"."id" = 1024 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.698381' WHERE "spree_products"."id" = 1024  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3671 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.699205' WHERE "spree_products"."id" = 1024 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1024) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:48:15.701987' WHERE "spree_products"."id" = 1024 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1024 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.709576' WHERE "spree_products"."id" = 1025 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.710774' WHERE "spree_products"."id" = 1025  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3672 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.711917' WHERE "spree_products"."id" = 1025  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1025  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["product_id", nil], ["property_id", 935], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1025, "updated_at" = '2012-10-01 15:48:15.718493' WHERE "spree_product_properties"."id" = 1136 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["product_id", nil], ["property_id", 934], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1025, "updated_at" = '2012-10-01 15:48:15.721109' WHERE "spree_product_properties"."id" = 1137 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["product_id", nil], ["property_id", 936], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1025, "updated_at" = '2012-10-01 15:48:15.723995' WHERE "spree_product_properties"."id" = 1138 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1025) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1301 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1301], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1025 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2263, 1025) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1298 AND "spree_taxons"."parent_id" = 2258 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2258]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2258], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1298], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2258]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2264]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2264 THEN 2258 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2258]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2264]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2264, 1025)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2258, 1025) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1025) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1025 AND "spree_option_types"."id" = 612 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1025) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["option_type_id", 612], ["position", 1], ["product_id", 1025], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.831420' WHERE "spree_products"."id" = 1025 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.832635' WHERE "spree_products"."id" = 1025  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1235, 3673) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.834806' WHERE "spree_products"."id" = 1025 SQL (1.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.837142' WHERE "spree_products"."id" = 1025  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1236, 3674) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 612 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.839495' WHERE "spree_products"."id" = 1025 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.840490' WHERE "spree_products"."id" = 1025  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3675, 1237) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1025]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1025 AND "spree_option_types"."id" = 613 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1025) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["option_type_id", 613], ["position", 2], ["product_id", 1025], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 613 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 613) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "black_white"], ["option_type_id", 613], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.852495' WHERE "spree_products"."id" = 1025 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.854243' WHERE "spree_products"."id" = 1025  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3676, 1238) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 613 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 613) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["name", "colour"], ["option_type_id", 613], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.859382' WHERE "spree_products"."id" = 1025 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1025], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.860416' WHERE "spree_products"."id" = 1025  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3677, 1239) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1025]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1025) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3673 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3674 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3675 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3676 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3677 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1025) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.891634' WHERE "spree_products"."id" = 1025  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3673 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.892927' WHERE "spree_products"."id" = 1025 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.893928' WHERE "spree_products"."id" = 1025  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3674 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.894960' WHERE "spree_products"."id" = 1025 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.896492' WHERE "spree_products"."id" = 1025  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3675 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.897564' WHERE "spree_products"."id" = 1025 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.899655' WHERE "spree_products"."id" = 1025  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3676 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.900496' WHERE "spree_products"."id" = 1025 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.901760' WHERE "spree_products"."id" = 1025  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3677 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:15.902645' WHERE "spree_products"."id" = 1025 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1025) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:48:15.905392' WHERE "spree_products"."id" = 1025 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1025 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (7.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3672) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1025)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3664 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3664) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:15 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3664], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1023 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:16.348983' WHERE "spree_products"."id" = 1023  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1023 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25 WHERE "spree_products"."id" = 1023 Row DEMO_001fixtures/images/DEMO_001_ror_bag.jpeg succesfully SAVED : ID 3664 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Spree::Image Load (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3668 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3668) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:16 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3668], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1024 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:21.573274' WHERE "spree_products"."id" = 1024  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1024 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11 WHERE "spree_products"."id" = 1024 Row DEMO_002fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 3668 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3672 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3672) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:21 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3672], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1025 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:21.987842' WHERE "spree_products"."id" = 1025  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (1.2ms) UPDATE "spree_products" SET "count_on_hand" = 53 WHERE "spree_products"."id" = 1025 Row DEMO_003fixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 3672  (4.6ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1025 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3672) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1025)) Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3672) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1025)) ORDER BY "spree_assets".position SQL (20.8ms) DELETE FROM "spree_products" SQL (2.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.111698' WHERE "spree_products"."id" = 1026 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1026], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.128056' WHERE "spree_products"."id" = 1026  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3678 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.129997' WHERE "spree_products"."id" = 1026  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1026  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["product_id", nil], ["property_id", 937], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1026, "updated_at" = '2012-10-01 15:48:22.139372' WHERE "spree_product_properties"."id" = 1139 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1302], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1026 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2265, 1026) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1303 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1303], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2266, 1026) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionType Exists (1.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1026 AND "spree_option_types"."id" = 614 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1026) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["option_type_id", 614], ["position", 1], ["product_id", 1026], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 614) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "jpeg"], ["option_type_id", 614], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.181586' WHERE "spree_products"."id" = 1026 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1026], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.182864' WHERE "spree_products"."id" = 1026  (0.4ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1240, 3679) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 614) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "PDF"], ["option_type_id", 614], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.203801' WHERE "spree_products"."id" = 1026 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1026], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.205587' WHERE "spree_products"."id" = 1026  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3680, 1241) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 614) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "PNG"], ["option_type_id", 614], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.370589' WHERE "spree_products"."id" = 1026 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1026], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.372064' WHERE "spree_products"."id" = 1026  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1242, 3681) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1026]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3679 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3680 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3681 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.384279' WHERE "spree_products"."id" = 1026  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3679 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.385311' WHERE "spree_products"."id" = 1026 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.386832' WHERE "spree_products"."id" = 1026  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3680 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.387479' WHERE "spree_products"."id" = 1026 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1026 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.388589' WHERE "spree_products"."id" = 1026  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3681 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.389589' WHERE "spree_products"."id" = 1026 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:48:22.392115' WHERE "spree_products"."id" = 1026 Row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7 succesfully SAVED : ID 1026 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.399120' WHERE "spree_products"."id" = 1027 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1027], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.400064' WHERE "spree_products"."id" = 1027  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3682 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.401280' WHERE "spree_products"."id" = 1027  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1027  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["product_id", nil], ["property_id", 938], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1027, "updated_at" = '2012-10-01 15:48:22.407069' WHERE "spree_product_properties"."id" = 1140 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1027 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2265, 1027) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1304 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1304], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2267, 1027) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" = 2265 AND "spree_taxons"."name" = 'Nature' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2265]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 2265], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1302], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2265]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2268]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2268 THEN 2265 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2265]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2268]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" = 2268 AND "spree_taxons"."name" = 'Seascape' LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2268]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 2268], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 1302], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2268]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2269]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2269 THEN 2268 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2268]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2269]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2268, 1027)  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2269, 1027) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1027 AND "spree_option_types"."id" = 614 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1027) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["option_type_id", 614], ["position", 1], ["product_id", 1027], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.438410' WHERE "spree_products"."id" = 1027 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1027], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.439230' WHERE "spree_products"."id" = 1027  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3683, 1240) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.442222' WHERE "spree_products"."id" = 1027 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1027], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.443216' WHERE "spree_products"."id" = 1027  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3684, 1241) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.445584' WHERE "spree_products"."id" = 1027 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1027], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.446590' WHERE "spree_products"."id" = 1027  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1242, 3685) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1027]] Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3683 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3684 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3685 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.458296' WHERE "spree_products"."id" = 1027  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3683 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.459806' WHERE "spree_products"."id" = 1027 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.460715' WHERE "spree_products"."id" = 1027  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3684 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.461476' WHERE "spree_products"."id" = 1027 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1027 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.462591' WHERE "spree_products"."id" = 1027  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3685 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.463591' WHERE "spree_products"."id" = 1027 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:48:22.465879' WHERE "spree_products"."id" = 1027 Row DEMO_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Oils|Paintings>Nature>Seascapemime_type:jpeg, PDF,PNG5|4|2 succesfully SAVED : ID 1027 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.472402' WHERE "spree_products"."id" = 1028 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.473591' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3686 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.474942' WHERE "spree_products"."id" = 1028  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1028  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["product_id", nil], ["property_id", 939], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1028, "updated_at" = '2012-10-01 15:48:22.480701' WHERE "spree_product_properties"."id" = 1141 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["product_id", nil], ["property_id", 938], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1028, "updated_at" = '2012-10-01 15:48:22.482760' WHERE "spree_product_properties"."id" = 1142 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["product_id", nil], ["property_id", 940], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1028, "updated_at" = '2012-10-01 15:48:22.486310' WHERE "spree_product_properties"."id" = 1143 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1305 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 1305], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1028 Product assigned to Taxons : ["Drawings"]  (0.5ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1028, 2270) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1302 AND "spree_taxons"."parent_id" = 2265 AND "spree_taxons"."name" = 'Landscape' LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2265]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 2265], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 1302], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 2265]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2271]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2271 THEN 2265 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2265]] Spree::Taxon Load (0.3ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 2271]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1028, 2271)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1028, 2265) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1028 AND "spree_option_types"."id" = 614 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1028) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["option_type_id", 614], ["position", 1], ["product_id", 1028], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.511147' WHERE "spree_products"."id" = 1028 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.512537' WHERE "spree_products"."id" = 1028  (0.0ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1240, 3687) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.515395' WHERE "spree_products"."id" = 1028 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.516650' WHERE "spree_products"."id" = 1028  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3688, 1241) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 614 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.519258' WHERE "spree_products"."id" = 1028 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.520231' WHERE "spree_products"."id" = 1028  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3689, 1242) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1028]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1028 AND "spree_option_types"."id" = 615 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1028) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["option_type_id", 615], ["position", 2], ["product_id", 1028], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 615 AND "spree_option_values"."name" = 'black_white' LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 615) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "black_white"], ["option_type_id", 615], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.533592' WHERE "spree_products"."id" = 1028 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.535214' WHERE "spree_products"."id" = 1028  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1243, 3690) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 615 AND "spree_option_values"."name" = 'colour' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 615) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["name", "colour"], ["option_type_id", 615], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.540499' WHERE "spree_products"."id" = 1028 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1028], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.541592' WHERE "spree_products"."id" = 1028  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3691, 1244) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1028]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3687 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3688 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3689 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3690 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3691 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.572333' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3687 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.573592' WHERE "spree_products"."id" = 1028 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.574898' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3688 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.575799' WHERE "spree_products"."id" = 1028 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.577282' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3689 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.578476' WHERE "spree_products"."id" = 1028 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.580193' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3690 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.581467' WHERE "spree_products"."id" = 1028 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1028 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.583292' WHERE "spree_products"."id" = 1028  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3691 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:22.584100' WHERE "spree_products"."id" = 1028 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:48:22.586933' WHERE "spree_products"."id" = 1028 Row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawings|Paintings>Landscapemime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18 succesfully SAVED : ID 1028 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.8ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3686) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1028)) Excel Loader processing 0 rows  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3678) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1026)) ORDER BY "spree_assets".position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1026) ORDER BY position DESC LIMIT 1 SQL (1.7ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:22 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 1026], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3678) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1026)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1026) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:23 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 1026], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1026) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Product for AR Loaderfixtures/images/DEMO_001_ror_bag.jpeg|fixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 1026 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3682) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1027)) ORDER BY "spree_assets".position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1027) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:28 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 1027], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1027) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo Excel Load via Jrubyfixtures/images/DEMO_002_Powerstation.jpg succesfully SAVED : ID 1027 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3686) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1028)) ORDER BY "spree_assets".position Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1028) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:33 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 1028], ["viewable_type", "Spree::Product"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1028) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row Demo third row in futurefixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 1028  (4.1ms) commit transaction Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1028 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3686) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1028)) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1027 AND ("spree_variants".is_master = 't') LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3682) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1027)) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1026 AND ("spree_variants".is_master = 't') LIMIT 1  (18.7ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3678) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1026)) SQL (3.1ms) DELETE FROM "spree_products" SQL (1.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (15.7ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (18.9ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (2.9ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.606257' WHERE "spree_products"."id" = 1029 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1029], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.607766' WHERE "spree_products"."id" = 1029  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3692 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.609367' WHERE "spree_products"."id" = 1029  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1029  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["product_id", nil], ["property_id", 941], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1029, "updated_at" = '2012-10-01 15:48:34.629396' WHERE "spree_product_properties"."id" = 1144 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1306 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 1306], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1029 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2272, 1029) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1307 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 1307], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2273, 1029) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1029 AND "spree_option_types"."id" = 616 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1029) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["option_type_id", 616], ["position", 1], ["product_id", 1029], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 616) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "jpeg"], ["option_type_id", 616], ["position", 1], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.659393' WHERE "spree_products"."id" = 1029 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1029], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.660767' WHERE "spree_products"."id" = 1029  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3693, 1245) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 616) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "PDF"], ["option_type_id", 616], ["position", 2], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.666033' WHERE "spree_products"."id" = 1029 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1029], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.667035' WHERE "spree_products"."id" = 1029  (14.6ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1246, 3694) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 616) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["name", "PNG"], ["option_type_id", 616], ["position", 3], ["presentation", nil], ["updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.687767' WHERE "spree_products"."id" = 1029 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1029], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.689297' WHERE "spree_products"."id" = 1029  (0.1ms) INSERT INTO "spree_option_values_variants" ("option_value_id", "variant_id") VALUES (1247, 3695) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1029]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3693 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3694 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3695 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.706475' WHERE "spree_products"."id" = 1029  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3693 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.707714' WHERE "spree_products"."id" = 1029 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.709128' WHERE "spree_products"."id" = 1029  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3694 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.710494' WHERE "spree_products"."id" = 1029 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1029 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.712058' WHERE "spree_products"."id" = 1029  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3695 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:34.712994' WHERE "spree_products"."id" = 1029 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3692 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3692) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:34 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3692], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1 Spree::Asset Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3692) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:35 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 3692], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1 Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3692) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:35 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", 3692], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1029) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:48:36.062560' WHERE "spree_products"."id" = 1029 Row MULTI_001Demo Product for AR Loaderblah blah2011-02-14399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7fixtures/images/DEMO_001_ror_bag.jpegfixtures/images/DEMO_001_ror_bag.jpeg:more random alt textfixtures/images/DEMO_003_ror_mug.jpeg succesfully SAVED : ID 1029 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.076393' WHERE "spree_products"."id" = 1030 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1030], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.093948' WHERE "spree_products"."id" = 1030  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3696 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.098119' WHERE "spree_products"."id" = 1030  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1030  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["product_id", nil], ["property_id", 942], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1030, "updated_at" = '2012-10-01 15:48:36.109626' WHERE "spree_product_properties"."id" = 1145 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1306 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1030 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2272, 1030) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1308 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 1308], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2274, 1030) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1309 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 1309], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.2ms) INSERT INTO "spree_products_taxons" ("taxon_id", "product_id") VALUES (2275, 1030) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1030 AND "spree_option_types"."id" = 616 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1030) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["option_type_id", 616], ["position", 1], ["product_id", 1030], ["updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'jpeg' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.146644' WHERE "spree_products"."id" = 1030 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1030], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.147995' WHERE "spree_products"."id" = 1030  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3697, 1245) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'PDF' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.154095' WHERE "spree_products"."id" = 1030 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1030], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.155293' WHERE "spree_products"."id" = 1030  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3698, 1246) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."option_type_id" = 616 AND "spree_option_values"."name" = 'PNG' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.159099' WHERE "spree_products"."id" = 1030 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1030], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.160463' WHERE "spree_products"."id" = 1030  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3699, 1247) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1030]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3697 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3698 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3699 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.178072' WHERE "spree_products"."id" = 1030  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3697 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.179069' WHERE "spree_products"."id" = 1030 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.180539' WHERE "spree_products"."id" = 1030  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3698 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.183094' WHERE "spree_products"."id" = 1030 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1030 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.186892' WHERE "spree_products"."id" = 1030  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3699 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:48:36.188019' WHERE "spree_products"."id" = 1030 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1 Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3696 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3696) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:36 UTC +00:00], ["attachment_width", 2424], ["position", 1], ["type", "Spree::Image"], ["viewable_id", 3696], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3696) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 01 Oct 2012 15:48:42 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", 3696], ["viewable_type", "Spree::Variant"]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1030) LIMIT 1  (0.7ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1030 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:48:43.142729' WHERE "spree_products"."id" = 1030 Row MULTI_002Demo Excel Load via Jrubyless blah2011-05-1410030test_pp_003Paintings|Landscape|Oilsmime_type:jpeg, PDF,PNG5|4|2fixtures/images/DEMO_002_Powerstation.jpg:some random alt text|fixtures/images/DEMO_001_ror_bag.jpeg succesfully SAVED : ID 1030 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (10.9ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1029 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Image Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3692 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Booted Spree using version 1.1.3 SQL (8.0ms) DELETE FROM "spree_products" SQL (4.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (4.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:57:51.985000', 'Paintings', '2012-10-01 15:57:51.985000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1310 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:52.538000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1310, '2012-10-01 15:57:52.538000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:52.589000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1310, '2012-10-01 15:57:52.589000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:52.637000', NULL, NULL, NULL, NULL, NULL, 5, 'Sea', NULL, 'sea', 0, 6, 1310, '2012-10-01 15:57:52.637000') ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (27.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones" SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:57:53.275000', 'Paintings', '2012-10-01 15:57:53.275000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1311 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.319000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1311, '2012-10-01 15:57:53.319000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.474000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1311, '2012-10-01 15:57:53.474000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.521000', NULL, NULL, NULL, NULL, NULL, 5, 'Sea', NULL, 'sea', 0, 6, 1311, '2012-10-01 15:57:53.521000') ExcelGenerator creating template with associations for class Spree::Product SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (3.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:57:53.587000', 'Paintings', '2012-10-01 15:57:53.587000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1312 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (2.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.633000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1312, '2012-10-01 15:57:53.633000')  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.657000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1312, '2012-10-01 15:57:53.657000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:53.679000', NULL, NULL, NULL, NULL, NULL, 5, 'Sea', NULL, 'sea', 0, 6, 1312, '2012-10-01 15:57:53.679000') ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (7.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (144.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (1.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (6.0ms) DELETE FROM "spree_zones" Excel Loader processing 70 rows Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (1.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (3.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.301000', 'f', 'Rest of World', 'ROW', '2012-10-01 15:57:54.301000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 123 Row org.apache.poi.hssf.usermodel.HSSFRow@8b73a2 succesfully SAVED : ID 123 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.423000', 'f', 'United Kingdom', 'UK', '2012-10-01 15:57:54.423000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 124 Row org.apache.poi.hssf.usermodel.HSSFRow@1fd270d succesfully SAVED : ID 124 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.439000', 'f', 'Europe', 'EUR', '2012-10-01 15:57:54.439000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 125 Row org.apache.poi.hssf.usermodel.HSSFRow@a378a7 succesfully SAVED : ID 125 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.470000', 'f', 'North America', 'NA', '2012-10-01 15:57:54.470000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 126 Row org.apache.poi.hssf.usermodel.HSSFRow@464132 succesfully SAVED : ID 126 Current value to assign : Current value to assign :  (1.0ms) SELECT COUNT(*) FROM "spree_zones"  SQL (6.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (38.0ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (23.0ms) DELETE FROM "spree_variants" SQL (4.0ms) DELETE FROM "spree_taxons" SQL (4.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones"  (1.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (3.0ms) DELETE FROM "spree_zones" Current value to assign : ROW Current value to assign : Rest of World Saving csv row ROWRest of World to table object : # Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (2.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.654000', 'f', 'Rest of World', 'ROW', '2012-10-01 15:57:54.654000', 0) Spree::ZoneMember Load (1.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 127 Current value to assign : UK Current value to assign : United Kingdom Saving csv row UKUnited Kingdom to table object : # Spree::Zone Exists (1.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.709000', 'f', 'United Kingdom', 'UK', '2012-10-01 15:57:54.709000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 128 Current value to assign : EUR Current value to assign : Europe Saving csv row EUREurope to table object : # Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.726000', 'f', 'Europe', 'EUR', '2012-10-01 15:57:54.726000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 129 Current value to assign : NA Current value to assign : North America Saving csv row NANorth America to table object : # Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES ('2012-10-01 15:57:54.753000', 'f', 'North America', 'NA', '2012-10-01 15:57:54.753000', 0) Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 130  (1.0ms) SELECT COUNT(*) FROM "spree_zones"  SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (50.0ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (4.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (48.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (1.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (4.0ms) DELETE FROM "spree_product_properties" SQL (26.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # Excel Loader processing 70 rows Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.0  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:57:55.201000', NULL, 'blah blah', NULL, NULL, 'Simple Product for AR Loader', 'simple-product-for-ar-loader', NULL, NULL, '2012-10-01 15:57:55.201000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1031 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.243000' WHERE "spree_products"."id" = 1031 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 345.78, 1031, 'SIMPLE_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.254000' WHERE "spree_products"."id" = 1031  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3700 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.268000' WHERE "spree_products"."id" = 1031  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1031 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1031 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1031  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1031 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3700 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1031) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:55.456000', 'mime_type', 0, 'Mime type', '2012-10-01 15:57:55.456000') Spree::OptionType Exists (2.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1031 AND "spree_option_types"."id" = 617 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1031) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:55.727000', 617, 1, 1031, '2012-10-01 15:57:55.727000') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1031) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-01 15:57:55.753000' WHERE "spree_products"."id" = 1031  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3700 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.833000' WHERE "spree_products"."id" = 1031 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1031 Row org.apache.poi.hssf.usermodel.HSSFRow@151a5f9 succesfully SAVED : ID 1031 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:57:55.864000', NULL, 'less blah', NULL, NULL, 'Simple Excel Load via Jruby', 'simple-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:57:55.864000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1032 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.907000' WHERE "spree_products"."id" = 1032 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1032, 'SIMPLE_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.914000' WHERE "spree_products"."id" = 1032  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3701 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:55.919000' WHERE "spree_products"."id" = 1032  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1032 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1032 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1032  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1032 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3701 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1032) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1032 AND "spree_option_types"."id" = 617 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1032) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:55.975000', 617, 1, 1032, '2012-10-01 15:57:55.975000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1032) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-01 15:57:55.989000' WHERE "spree_products"."id" = 1032  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3701 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.023000' WHERE "spree_products"."id" = 1032 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1032 Row org.apache.poi.hssf.usermodel.HSSFRow@13acaaf succesfully SAVED : ID 1032 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2112-07-01 00:00:00.000000', 0, '2012-10-01 15:57:56.071000', NULL, 'more blah blah', NULL, NULL, 'Simple third row avail in future', 'simple-third-row-avail-in-future', NULL, NULL, '2012-10-01 15:57:56.071000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1033 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.094000' WHERE "spree_products"."id" = 1033 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1033, 'SIMPLE_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.101000' WHERE "spree_products"."id" = 1033  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3702 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.110000' WHERE "spree_products"."id" = 1033  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1033 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1033 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1033  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1033 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3702 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1033) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1033 AND "spree_option_types"."id" = 617 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1033) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:56.175000', 617, 1, 1033, '2012-10-01 15:57:56.175000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:56.184000', 'print_type', 0, 'Print type', '2012-10-01 15:57:56.184000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1033 AND "spree_option_types"."id" = 618 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1033) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:56.260000', 618, 2, 1033, '2012-10-01 15:57:56.260000') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1033) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-01 15:57:56.299000' WHERE "spree_products"."id" = 1033  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 3702 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.323000' WHERE "spree_products"."id" = 1033 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1033 Row org.apache.poi.hssf.usermodel.HSSFRow@82b436 succesfully SAVED : ID 1033 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-01 15:57:56.433000')  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-01 15:57:56.434000')  (0.0ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1031 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (21.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1031 ORDER BY spree_option_types.position  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1031 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1033 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (29.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:57:56.664000', NULL, 'blah blah', NULL, NULL, 'Simple Product for AR Loader', 'simple-product-for-ar-loader', NULL, NULL, '2012-10-01 15:57:56.664000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1034 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.678000' WHERE "spree_products"."id" = 1034 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 345.78, 1034, 'SIMPLE_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.682000' WHERE "spree_products"."id" = 1034  (2.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3703 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.689000' WHERE "spree_products"."id" = 1034  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1034 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1034 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1034  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1034 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3703 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1034) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:56.753000', 'mime_type', 0, 'Mime type', '2012-10-01 15:57:56.753000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1034 AND "spree_option_types"."id" = 619 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1034) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:56.921000', 619, 1, 1034, '2012-10-01 15:57:56.921000') Saving csv row SIMPLE_001Simple Product for AR Loaderblah blah2011-02-14345.78320.0012mime_type to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1034) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-01 15:57:56.964000' WHERE "spree_products"."id" = 1034  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3703 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:56.974000' WHERE "spree_products"."id" = 1034 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1034 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:57:57.029000', NULL, 'less blah', NULL, NULL, 'Simple Excel Load via Jruby', 'simple-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:57:57.029000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1035 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.039000' WHERE "spree_products"."id" = 1035 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1035, 'SIMPLE_002', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.087000' WHERE "spree_products"."id" = 1035  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3704 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.093000' WHERE "spree_products"."id" = 1035  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1035 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1035 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1035  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1035 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3704 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1035) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1035 AND "spree_option_types"."id" = 619 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1035) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:57.542000', 619, 1, 1035, '2012-10-01 15:57:57.542000') Saving csv row SIMPLE_002Simple Excel Load via Jrubyless blah2011-05-14100.0030.005mime_type to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1035) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-01 15:57:57.552000' WHERE "spree_products"."id" = 1035  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3704 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.563000' WHERE "spree_products"."id" = 1035 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1035 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2112-07-01 00:00:00.000000', 0, '2012-10-01 15:57:57.585000', NULL, 'more blah blah', NULL, NULL, 'Simple third row avail in future', 'simple-third-row-avail-in-future', NULL, NULL, '2012-10-01 15:57:57.585000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1036 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.607000' WHERE "spree_products"."id" = 1036 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1036, 'SIMPLE_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.612000' WHERE "spree_products"."id" = 1036  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3705 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.636000' WHERE "spree_products"."id" = 1036  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1036 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1036 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1036  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1036 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3705 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1036) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (2.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1036 AND "spree_option_types"."id" = 619 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (4.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1036) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:57.800000', 619, 1, 1036, '2012-10-01 15:57:57.800000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:57.807000', 'print_type', 0, 'Print type', '2012-10-01 15:57:57.807000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1036 AND "spree_option_types"."id" = 620 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1036) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:57.868000', 620, 2, 1036, '2012-10-01 15:57:57.868000') Saving csv row SIMPLE_003Simple third row avail in futuremore blah blah2112-07-0150.3423.3423mime_type|print_type to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1036) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-01 15:57:57.875000' WHERE "spree_products"."id" = 1036  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 3705 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:57.881000' WHERE "spree_products"."id" = 1036 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1036  (2.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-01 15:57:57.916000')  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-01 15:57:57.919000')  (0.0ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1034 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1034 ORDER BY spree_option_types.position  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1034 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1036 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (5.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (4.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (24.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (6.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # Excel Loader processing 70 rows Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-10-01 16:57:58.000000', 0, '2012-10-01 15:57:58.162000', NULL, 'blah blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple Product for AR Loader', 'simple-product-for-ar-loader', NULL, NULL, '2012-10-01 15:57:58.162000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1037 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.169000' WHERE "spree_products"."id" = 1037 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 345.78, 1037, 'SPEC_SIMPLE_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.175000' WHERE "spree_products"."id" = 1037  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3706 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.185000' WHERE "spree_products"."id" = 1037  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1037 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1037 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1037  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1037 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:58.212000', 'mime_type', 0, 'Mime type', '2012-10-01 15:57:58.212000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1037 AND "spree_option_types"."id" = 621 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1037) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:58.233000', 621, 1, 1037, '2012-10-01 15:57:58.233000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1037) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@3b5d0a succesfully SAVED : ID 1037 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-10-01 16:57:58.000000', 0, '2012-10-01 15:57:58.301000', NULL, 'less blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple Excel Load via Jruby', 'simple-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:57:58.301000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1038 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.309000' WHERE "spree_products"."id" = 1038 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1038, 'SPEC_SIMPLE_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.462000' WHERE "spree_products"."id" = 1038  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3707 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.472000' WHERE "spree_products"."id" = 1038  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1038 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1038 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1038  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1038 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1038 AND "spree_option_types"."id" = 621 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1038) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:58.519000', 621, 1, 1038, '2012-10-01 15:57:58.519000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1038) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@d8a85f succesfully SAVED : ID 1038 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-10-01 16:57:58.000000', 0, '2012-10-01 15:57:58.591000', NULL, 'more blah blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple third row avail in future', 'simple-third-row-avail-in-future', NULL, NULL, '2012-10-01 15:57:58.591000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1039 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.596000' WHERE "spree_products"."id" = 1039 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1039, 'SPEC_SIMPLE_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.599000' WHERE "spree_products"."id" = 1039  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3708 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.607000' WHERE "spree_products"."id" = 1039  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1039 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1039 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1039  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1039 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1039 AND "spree_option_types"."id" = 621 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1039) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:58.631000', 621, 1, 1039, '2012-10-01 15:57:58.631000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:58.635000', 'print_type', 0, 'Print type', '2012-10-01 15:57:58.635000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1039 AND "spree_option_types"."id" = 622 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1039) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:58.651000', 622, 2, 1039, '2012-10-01 15:57:58.651000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1039) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@dd2498 succesfully SAVED : ID 1039 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (3.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1037 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products"  SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 70 rows Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (NULL, 0, '2012-10-01 15:57:58.899000', NULL, 'blah blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple Product for AR Loader', 'simple-product-for-ar-loader', NULL, NULL, '2012-10-01 15:57:58.899000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1040 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.937000' WHERE "spree_products"."id" = 1040 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 345.78, 1040, 'SPEC_SIMPLE_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.942000' WHERE "spree_products"."id" = 1040  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3709 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:58.970000' WHERE "spree_products"."id" = 1040  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1040 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1040 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1040  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1040 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:58.998000', 'mime_type', 0, 'Mime type', '2012-10-01 15:57:58.998000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1040 AND "spree_option_types"."id" = 623 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1040) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:59.016000', 623, 1, 1040, '2012-10-01 15:57:59.016000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1040) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@1730b46 succesfully SAVED : ID 1040 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (NULL, 0, '2012-10-01 15:57:59.057000', NULL, 'less blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple Excel Load via Jruby', 'simple-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:57:59.057000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1041 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.108000' WHERE "spree_products"."id" = 1041 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1041, 'SPEC_SIMPLE_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.114000' WHERE "spree_products"."id" = 1041  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3710 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.124000' WHERE "spree_products"."id" = 1041  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1041 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1041 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1041  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1041 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1041 AND "spree_option_types"."id" = 623 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1041) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:59.144000', 623, 1, 1041, '2012-10-01 15:57:59.144000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1041) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@55af22 succesfully SAVED : ID 1041 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (NULL, 0, '2012-10-01 15:57:59.185000', NULL, 'more blah blah', 'super duper meta desc.', 'techno dubstep d&b', 'Simple third row avail in future', 'simple-third-row-avail-in-future', NULL, NULL, '2012-10-01 15:57:59.185000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1042 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.191000' WHERE "spree_products"."id" = 1042 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (1.0, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1042, 'SPEC_SIMPLE_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.195000' WHERE "spree_products"."id" = 1042  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3711 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.199000' WHERE "spree_products"."id" = 1042  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1042 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1042 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1042  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1042 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1042 AND "spree_option_types"."id" = 623 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1042) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:59.223000', 623, 1, 1042, '2012-10-01 15:57:59.223000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.227000', 'print_type', 0, 'Print type', '2012-10-01 15:57:59.227000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1042 AND "spree_option_types"."id" = 624 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1042) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:59.235000', 624, 2, 1042, '2012-10-01 15:57:59.235000') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1042) LIMIT 1 Row org.apache.poi.hssf.usermodel.HSSFRow@10cb2cb succesfully SAVED : ID 1042 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1040 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" SQL (3.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (49.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (1.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.421000', 'test_pp_001', 'Test PP 001', '2012-10-01 15:57:59.421000')  (0.0ms) SELECT COUNT(*) FROM "spree_properties" Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:57:59.537000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:57:59.537000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.545000' WHERE "spree_products"."id" = 1043 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1043, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.549000' WHERE "spree_products"."id" = 1043  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3712 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.560000' WHERE "spree_products"."id" = 1043  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1043  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:57:59.622000', NULL, 943, '2012-10-01 15:57:59.622000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1043, "updated_at" = '2012-10-01 15:57:59.633000' WHERE "spree_product_properties"."id" = 1146 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:57:59.640000', 'Paintings', '2012-10-01 15:57:59.640000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1313 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:59.648000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1313, '2012-10-01 15:57:59.648000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1043 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1043, 2285) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:57:59.663000', 'WaterColour', '2012-10-01 15:57:59.663000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1314 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:57:59.672000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1314, '2012-10-01 15:57:59.672000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1043, 2286) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.706000', 'mime_type', 0, 'Mime type', '2012-10-01 15:57:59.706000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1043 AND "spree_option_types"."id" = 625 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1043) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:57:59.746000', 625, 1, 1043, '2012-10-01 15:57:59.746000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 625) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.774000', 'jpeg', 625, 1, NULL, '2012-10-01 15:57:59.774000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.781000' WHERE "spree_products"."id" = 1043 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1043, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.786000' WHERE "spree_products"."id" = 1043  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3713, 1248) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 625) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.796000', 'PDF', 625, 2, NULL, '2012-10-01 15:57:59.796000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.806000' WHERE "spree_products"."id" = 1043 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1043, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.808000' WHERE "spree_products"."id" = 1043  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3714, 1249) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 625) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:57:59.815000', 'PNG', 625, 3, NULL, '2012-10-01 15:57:59.815000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.835000' WHERE "spree_products"."id" = 1043 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1043, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.844000' WHERE "spree_products"."id" = 1043  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3715, 1250) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3713 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3714 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3715 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.891000' WHERE "spree_products"."id" = 1043  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3713 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.893000' WHERE "spree_products"."id" = 1043 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.895000' WHERE "spree_products"."id" = 1043  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3714 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.897000' WHERE "spree_products"."id" = 1043 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1043 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.900000' WHERE "spree_products"."id" = 1043  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3715 SQL (2.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:57:59.902000' WHERE "spree_products"."id" = 1043 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1043) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1043 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:57:59.912000' WHERE "spree_products"."id" = 1043 Row org.apache.poi.hssf.usermodel.HSSFRow@e853d1 succesfully SAVED : ID 1043 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:00.030000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:00.030000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.038000' WHERE "spree_products"."id" = 1044 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1044, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.043000' WHERE "spree_products"."id" = 1044  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3716 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.048000' WHERE "spree_products"."id" = 1044  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (3.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1044  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.069000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:00.069000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:00.073000', NULL, 944, '2012-10-01 15:58:00.073000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1044, "updated_at" = '2012-10-01 15:58:00.082000' WHERE "spree_product_properties"."id" = 1147 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1313 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1044 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1044, 2285) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:00.097000', 'Oils', '2012-10-01 15:58:00.097000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1315 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:00.106000', NULL, NULL, NULL, NULL, NULL, 5, 'Oils', NULL, 'oils', 0, 6, 1315, '2012-10-01 15:58:00.106000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1044, 2287) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1313 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2285 AND "spree_taxons"."taxonomy_id" = 1313 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:00.120000', NULL, NULL, NULL, NULL, NULL, 7, 'Nature', 2285, 'paintings/nature', 0, 8, 1313, '2012-10-01 15:58:00.120000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2288 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2288 THEN 2285 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2288 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2288 AND "spree_taxons"."taxonomy_id" = 1313 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2288 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:00.141000', NULL, NULL, NULL, NULL, NULL, 9, 'Seascape', 2288, 'paintings/nature/seascape', 0, 10, 1313, '2012-10-01 15:58:00.141000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2288 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2289 LIMIT 1 SQL (2.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2289 THEN 2288 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2288 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2289 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1044, 2288)  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1044, 2289) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1044 AND "spree_option_types"."id" = 625 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1044) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:00.179000', 625, 1, 1044, '2012-10-01 15:58:00.179000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.198000' WHERE "spree_products"."id" = 1044 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1044, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.206000' WHERE "spree_products"."id" = 1044  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3717, 1248) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.213000' WHERE "spree_products"."id" = 1044 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1044, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.219000' WHERE "spree_products"."id" = 1044  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3718, 1249) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.226000' WHERE "spree_products"."id" = 1044 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1044, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.229000' WHERE "spree_products"."id" = 1044  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3719, 1250) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3717 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3718 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3719 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.277000' WHERE "spree_products"."id" = 1044  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3717 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.286000' WHERE "spree_products"."id" = 1044 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.289000' WHERE "spree_products"."id" = 1044  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3718 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.291000' WHERE "spree_products"."id" = 1044 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1044 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.295000' WHERE "spree_products"."id" = 1044  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3719 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.297000' WHERE "spree_products"."id" = 1044 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1044) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1044 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:00.313000' WHERE "spree_products"."id" = 1044 Row org.apache.poi.hssf.usermodel.HSSFRow@5ce05c succesfully SAVED : ID 1044 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:00.346000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:00.346000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.355000' WHERE "spree_products"."id" = 1045 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.358000' WHERE "spree_products"."id" = 1045  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3720 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.361000' WHERE "spree_products"."id" = 1045  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1045  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.374000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:00.374000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:00.382000', NULL, 945, '2012-10-01 15:58:00.382000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1045, "updated_at" = '2012-10-01 15:58:00.384000' WHERE "spree_product_properties"."id" = 1148 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:00.416000', NULL, 944, '2012-10-01 15:58:00.416000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1045, "updated_at" = '2012-10-01 15:58:00.419000' WHERE "spree_product_properties"."id" = 1149 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.435000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:00.435000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:00.441000', NULL, 946, '2012-10-01 15:58:00.441000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1045, "updated_at" = '2012-10-01 15:58:00.444000' WHERE "spree_product_properties"."id" = 1150 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:00.455000', 'Drawings', '2012-10-01 15:58:00.455000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1316 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:00.461000', NULL, NULL, NULL, NULL, NULL, 11, 'Drawings', NULL, 'drawings', 0, 12, 1316, '2012-10-01 15:58:00.461000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1045 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1045, 2290) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1313 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2285 AND "spree_taxons"."taxonomy_id" = 1313 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:00.487000', NULL, NULL, NULL, NULL, NULL, 13, 'Landscape', 2285, 'paintings/landscape', 0, 14, 1313, '2012-10-01 15:58:00.487000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2291 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2291 THEN 2285 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2285 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2291 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1045, 2291)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1045, 2285) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1045 AND "spree_option_types"."id" = 625 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1045) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:00.521000', 625, 1, 1045, '2012-10-01 15:58:00.521000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.533000' WHERE "spree_products"."id" = 1045 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.537000' WHERE "spree_products"."id" = 1045  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3721, 1248) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.563000' WHERE "spree_products"."id" = 1045 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.567000' WHERE "spree_products"."id" = 1045  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3722, 1249) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 625 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.581000' WHERE "spree_products"."id" = 1045 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.585000' WHERE "spree_products"."id" = 1045  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3723, 1250) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.593000', 'print_type', 0, 'Print type', '2012-10-01 15:58:00.593000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1045 AND "spree_option_types"."id" = 626 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1045) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:00.605000', 626, 2, 1045, '2012-10-01 15:58:00.605000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 626 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 626) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.612000', 'black_white', 626, 1, NULL, '2012-10-01 15:58:00.612000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.636000' WHERE "spree_products"."id" = 1045 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.641000' WHERE "spree_products"."id" = 1045  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3724, 1251) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 626 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 626) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.648000', 'colour', 626, 2, NULL, '2012-10-01 15:58:00.648000')  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.655000' WHERE "spree_products"."id" = 1045 SQL (2.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1045, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.658000' WHERE "spree_products"."id" = 1045  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3725, 1252) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3721 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3722 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3723 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3724 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3725 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.704000' WHERE "spree_products"."id" = 1045  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3721 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.723000' WHERE "spree_products"."id" = 1045 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.726000' WHERE "spree_products"."id" = 1045  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3722 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.728000' WHERE "spree_products"."id" = 1045 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.730000' WHERE "spree_products"."id" = 1045  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3723 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.732000' WHERE "spree_products"."id" = 1045 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.734000' WHERE "spree_products"."id" = 1045  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3724 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.736000' WHERE "spree_products"."id" = 1045 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1045 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.738000' WHERE "spree_products"."id" = 1045  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3725 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:00.747000' WHERE "spree_products"."id" = 1045 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1045) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1045 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:00.758000' WHERE "spree_products"."id" = 1045 Row org.apache.poi.hssf.usermodel.HSSFRow@357bf9 succesfully SAVED : ID 1045 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1043 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products"  Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1045 Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1045 SQL (4.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (4.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (16.0ms) DELETE FROM "spree_variants" SQL (5.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:00.977000', 'test_pp_001', 'Test PP 001', '2012-10-01 15:58:00.977000')  (1.0ms) SELECT COUNT(*) FROM "spree_properties" Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:01.066000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:01.066000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.073000' WHERE "spree_products"."id" = 1046 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1046, 'DEMO_001', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.082000' WHERE "spree_products"."id" = 1046  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3726 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.085000' WHERE "spree_products"."id" = 1046  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1046  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:01.096000', NULL, 947, '2012-10-01 15:58:01.096000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1046, "updated_at" = '2012-10-01 15:58:01.099000' WHERE "spree_product_properties"."id" = 1151 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:01.113000', 'Paintings', '2012-10-01 15:58:01.113000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1317 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:01.383000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1317, '2012-10-01 15:58:01.383000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1046 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1046, 2292) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:01.423000', 'WaterColour', '2012-10-01 15:58:01.423000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1318 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:01.436000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1318, '2012-10-01 15:58:01.436000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1046, 2293) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:01.461000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:01.461000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1046 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1046) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:01.478000', 627, 1, 1046, '2012-10-01 15:58:01.478000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 627 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 627) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:01.485000', 'jpeg', 627, 1, NULL, '2012-10-01 15:58:01.485000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.537000' WHERE "spree_products"."id" = 1046 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1046, 'DEMO_001_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.540000' WHERE "spree_products"."id" = 1046  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3727, 1253) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1046 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 627 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 627) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:01.557000', 'PDF', 627, 2, NULL, '2012-10-01 15:58:01.557000')  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.569000' WHERE "spree_products"."id" = 1046 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1046, 'DEMO_001_2', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.572000' WHERE "spree_products"."id" = 1046  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3728, 1254) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1046 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 627 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 627) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:01.592000', 'PNG', 627, 3, NULL, '2012-10-01 15:58:01.592000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.598000' WHERE "spree_products"."id" = 1046 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1046, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.600000' WHERE "spree_products"."id" = 1046  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3729, 1255) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3727 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3728 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3729 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.673000' WHERE "spree_products"."id" = 1046  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3727 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.676000' WHERE "spree_products"."id" = 1046 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.679000' WHERE "spree_products"."id" = 1046  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3728 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.742000' WHERE "spree_products"."id" = 1046 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1046 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.744000' WHERE "spree_products"."id" = 1046  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3729 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.746000' WHERE "spree_products"."id" = 1046 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1046) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1046 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:01.753000' WHERE "spree_products"."id" = 1046 Row org.apache.poi.hssf.usermodel.HSSFRow@10af74c succesfully SAVED : ID 1046 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:01.767000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:01.767000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.773000' WHERE "spree_products"."id" = 1047 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1047, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.776000' WHERE "spree_products"."id" = 1047  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3730 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.798000' WHERE "spree_products"."id" = 1047  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1047  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:01.811000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:01.811000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:01.816000', NULL, 948, '2012-10-01 15:58:01.816000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1047, "updated_at" = '2012-10-01 15:58:01.819000' WHERE "spree_product_properties"."id" = 1152 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1317 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1047 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1047, 2292) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:01.851000', 'Oils', '2012-10-01 15:58:01.851000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1319 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:01.862000', NULL, NULL, NULL, NULL, NULL, 5, 'Oils', NULL, 'oils', 0, 6, 1319, '2012-10-01 15:58:01.862000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1047, 2294) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1317 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2292 AND "spree_taxons"."taxonomy_id" = 1317 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:01.894000', NULL, NULL, NULL, NULL, NULL, 7, 'Nature', 2292, 'paintings/nature', 0, 8, 1317, '2012-10-01 15:58:01.894000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2295 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2295 THEN 2292 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2295 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2295 AND "spree_taxons"."taxonomy_id" = 1317 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2295 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:01.918000', NULL, NULL, NULL, NULL, NULL, 9, 'Seascape', 2295, 'paintings/nature/seascape', 0, 10, 1317, '2012-10-01 15:58:01.918000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2295 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2296 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2296 THEN 2295 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2295 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2296 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1047, 2295)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1047, 2296) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1047 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1047) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:01.949000', 627, 1, 1047, '2012-10-01 15:58:01.949000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 627 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.965000' WHERE "spree_products"."id" = 1047 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1047, 'DEMO_002_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.968000' WHERE "spree_products"."id" = 1047  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3731, 1253) Spree::Product Load (3.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1047 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 627 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:01.996000' WHERE "spree_products"."id" = 1047 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1047, 'DEMO_002_2', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.000000' WHERE "spree_products"."id" = 1047  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3732, 1254) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 Spree::Variant Load (5.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1047 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 627 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.042000' WHERE "spree_products"."id" = 1047 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1047, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.047000' WHERE "spree_products"."id" = 1047  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3733, 1255) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3731 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3732 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3733 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.095000' WHERE "spree_products"."id" = 1047  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3731 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.099000' WHERE "spree_products"."id" = 1047 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.108000' WHERE "spree_products"."id" = 1047  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3732 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.111000' WHERE "spree_products"."id" = 1047 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1047 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.115000' WHERE "spree_products"."id" = 1047  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3733 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.117000' WHERE "spree_products"."id" = 1047 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1047) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1047 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:02.127000' WHERE "spree_products"."id" = 1047 Row org.apache.poi.hssf.usermodel.HSSFRow@21262a succesfully SAVED : ID 1047 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:02.152000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:02.152000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.163000' WHERE "spree_products"."id" = 1048 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.167000' WHERE "spree_products"."id" = 1048  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3734 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.171000' WHERE "spree_products"."id" = 1048  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1048  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:02.183000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:02.183000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:02.191000', NULL, 949, '2012-10-01 15:58:02.191000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1048, "updated_at" = '2012-10-01 15:58:02.194000' WHERE "spree_product_properties"."id" = 1153 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:02.201000', NULL, 948, '2012-10-01 15:58:02.201000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1048, "updated_at" = '2012-10-01 15:58:02.205000' WHERE "spree_product_properties"."id" = 1154 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:02.212000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:02.212000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:02.215000', NULL, 950, '2012-10-01 15:58:02.215000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1048, "updated_at" = '2012-10-01 15:58:02.217000' WHERE "spree_product_properties"."id" = 1155 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:02.224000', 'Drawings', '2012-10-01 15:58:02.224000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1320 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:02.229000', NULL, NULL, NULL, NULL, NULL, 11, 'Drawings', NULL, 'drawings', 0, 12, 1320, '2012-10-01 15:58:02.229000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1048 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1048, 2297) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1317 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2292 AND "spree_taxons"."taxonomy_id" = 1317 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:02.253000', NULL, NULL, NULL, NULL, NULL, 13, 'Landscape', 2292, 'paintings/landscape', 0, 14, 1317, '2012-10-01 15:58:02.253000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2298 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2298 THEN 2292 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2292 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2298 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1048, 2298)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1048, 2292) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1048 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1048) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:02.286000', 627, 1, 1048, '2012-10-01 15:58:02.286000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 627 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.293000' WHERE "spree_products"."id" = 1048 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.297000' WHERE "spree_products"."id" = 1048  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3735, 1253) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1048 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 627 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.324000' WHERE "spree_products"."id" = 1048 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.327000' WHERE "spree_products"."id" = 1048  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3736, 1254) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1048 AND "spree_option_types"."id" = 627 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 627 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.354000' WHERE "spree_products"."id" = 1048 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.357000' WHERE "spree_products"."id" = 1048  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3737, 1255) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:02.366000', 'print_type', 0, 'Print type', '2012-10-01 15:58:02.366000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1048 AND "spree_option_types"."id" = 628 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1048) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:02.430000', 628, 2, 1048, '2012-10-01 15:58:02.430000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 628 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 628) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:02.434000', 'black_white', 628, 1, NULL, '2012-10-01 15:58:02.434000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.442000' WHERE "spree_products"."id" = 1048 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.445000' WHERE "spree_products"."id" = 1048  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3738, 1256) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1048 AND "spree_option_types"."id" = 628 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 628 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 628) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:02.466000', 'colour', 628, 2, NULL, '2012-10-01 15:58:02.466000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.472000' WHERE "spree_products"."id" = 1048 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1048, 'DEMO_003_5', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.476000' WHERE "spree_products"."id" = 1048  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3739, 1257) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3735 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3736 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3737 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3738 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3739 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.506000' WHERE "spree_products"."id" = 1048  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3735 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.510000' WHERE "spree_products"."id" = 1048 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.514000' WHERE "spree_products"."id" = 1048  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3736 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.518000' WHERE "spree_products"."id" = 1048 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.519000' WHERE "spree_products"."id" = 1048  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3737 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.521000' WHERE "spree_products"."id" = 1048 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.524000' WHERE "spree_products"."id" = 1048  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3738 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.525000' WHERE "spree_products"."id" = 1048 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1048 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.530000' WHERE "spree_products"."id" = 1048  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3739 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:02.532000' WHERE "spree_products"."id" = 1048 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1048) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1048 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:02.537000' WHERE "spree_products"."id" = 1048 Row org.apache.poi.hssf.usermodel.HSSFRow@76ebc2 succesfully SAVED : ID 1048 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"  (1.0ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1046 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1048 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1048 SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (4.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (376.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (16.0ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (5.0ms) DELETE FROM "spree_taxons" SQL (4.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (4.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (4.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.0ms) DELETE FROM "spree_zones"  (2.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (33.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (6.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:03.563000', 'Paintings', '2012-10-01 15:58:03.563000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1321 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:03.593000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1321, '2012-10-01 15:58:03.593000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:03.618000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1321, '2012-10-01 15:58:03.618000')  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  (1.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:03.656000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:03.656000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.678000' WHERE "spree_products"."id" = 1049 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1049, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.683000' WHERE "spree_products"."id" = 1049  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3740 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.689000' WHERE "spree_products"."id" = 1049  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1049  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:03.703000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:03.703000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:03.706000', NULL, 951, '2012-10-01 15:58:03.706000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1049, "updated_at" = '2012-10-01 15:58:03.712000' WHERE "spree_product_properties"."id" = 1156 Created New ProductProperty # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1321 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1049 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1049, 2299) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:03.728000', 'WaterColour', '2012-10-01 15:58:03.728000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1322 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:03.780000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1322, '2012-10-01 15:58:03.780000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1049, 2301) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:03.801000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:03.801000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1049 AND "spree_option_types"."id" = 629 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1049) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:03.826000', 629, 1, 1049, '2012-10-01 15:58:03.826000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 629) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:03.858000', 'jpeg', 629, 1, NULL, '2012-10-01 15:58:03.858000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.863000' WHERE "spree_products"."id" = 1049 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1049, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.865000' WHERE "spree_products"."id" = 1049  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3741, 1258) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 629) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:03.878000', 'PDF', 629, 2, NULL, '2012-10-01 15:58:03.878000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.883000' WHERE "spree_products"."id" = 1049 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1049, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.885000' WHERE "spree_products"."id" = 1049  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3742, 1259) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 629) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:03.889000', 'PNG', 629, 3, NULL, '2012-10-01 15:58:03.889000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.904000' WHERE "spree_products"."id" = 1049 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1049, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.907000' WHERE "spree_products"."id" = 1049  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3743, 1260) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3741 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3742 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3743 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.931000' WHERE "spree_products"."id" = 1049  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3741 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.933000' WHERE "spree_products"."id" = 1049 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.935000' WHERE "spree_products"."id" = 1049  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3742 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.937000' WHERE "spree_products"."id" = 1049 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1049 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.939000' WHERE "spree_products"."id" = 1049  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3743 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.943000' WHERE "spree_products"."id" = 1049 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1049) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:03.947000' WHERE "spree_products"."id" = 1049 Row org.apache.poi.hssf.usermodel.HSSFRow@1aab29a succesfully SAVED : ID 1049 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:03.989000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:03.989000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:03.997000' WHERE "spree_products"."id" = 1050 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1050, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.002000' WHERE "spree_products"."id" = 1050  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3744 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.005000' WHERE "spree_products"."id" = 1050  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1050  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.016000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:04.016000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:04.018000', NULL, 952, '2012-10-01 15:58:04.018000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1050, "updated_at" = '2012-10-01 15:58:04.020000' WHERE "spree_product_properties"."id" = 1157 Created New ProductProperty # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1321 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1050 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1050, 2299) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:04.037000', 'Oils', '2012-10-01 15:58:04.037000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1323 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:04.042000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1323, '2012-10-01 15:58:04.042000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1050, 2302) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1321 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2299 AND "spree_taxons"."taxonomy_id" = 1321 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:04.065000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2299, 'paintings/nature', 0, 10, 1321, '2012-10-01 15:58:04.065000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2303 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2303 THEN 2299 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2303 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2303 AND "spree_taxons"."taxonomy_id" = 1321 LIMIT 1  (4.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2303 LIMIT 1 SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:04.106000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2303, 'paintings/nature/seascape', 0, 12, 1321, '2012-10-01 15:58:04.106000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2303 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2304 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2304 THEN 2303 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2303 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2304 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1050, 2303)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1050, 2304) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1050 AND "spree_option_types"."id" = 629 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1050) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:04.128000', 629, 1, 1050, '2012-10-01 15:58:04.128000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.141000' WHERE "spree_products"."id" = 1050 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1050, 'DEMO_002_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.144000' WHERE "spree_products"."id" = 1050  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3745, 1258) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.157000' WHERE "spree_products"."id" = 1050 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1050, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.160000' WHERE "spree_products"."id" = 1050  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3746, 1259) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (2.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.170000' WHERE "spree_products"."id" = 1050 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1050, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.175000' WHERE "spree_products"."id" = 1050  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3747, 1260) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (2.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3745 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3746 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3747 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.208000' WHERE "spree_products"."id" = 1050  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3745 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.210000' WHERE "spree_products"."id" = 1050 Spree::Product Load (5.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.223000' WHERE "spree_products"."id" = 1050  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3746 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.225000' WHERE "spree_products"."id" = 1050 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1050 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.227000' WHERE "spree_products"."id" = 1050  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3747 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.231000' WHERE "spree_products"."id" = 1050 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1050) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:04.235000' WHERE "spree_products"."id" = 1050 Row org.apache.poi.hssf.usermodel.HSSFRow@1123984 succesfully SAVED : ID 1050 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:04.267000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:04.267000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.297000' WHERE "spree_products"."id" = 1051 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.300000' WHERE "spree_products"."id" = 1051  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3748 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.304000' WHERE "spree_products"."id" = 1051  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1051  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.315000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:04.315000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:04.318000', NULL, 953, '2012-10-01 15:58:04.318000', NULL)  (2.0ms) UPDATE "spree_product_properties" SET "product_id" = 1051, "updated_at" = '2012-10-01 15:58:04.323000' WHERE "spree_product_properties"."id" = 1158 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:04.328000', NULL, 952, '2012-10-01 15:58:04.328000', 'Example free value')  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1051, "updated_at" = '2012-10-01 15:58:04.332000' WHERE "spree_product_properties"."id" = 1159 Created New ProductProperty # Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.340000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:04.340000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:04.342000', NULL, 954, '2012-10-01 15:58:04.342000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1051, "updated_at" = '2012-10-01 15:58:04.344000' WHERE "spree_product_properties"."id" = 1160 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:04.352000', 'Drawings', '2012-10-01 15:58:04.352000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1324 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:04.356000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1324, '2012-10-01 15:58:04.356000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1051 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1051, 2305) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1321 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2299 AND "spree_taxons"."taxonomy_id" = 1321 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:04.380000', NULL, NULL, NULL, NULL, NULL, 15, 'Landscape', 2299, 'paintings/landscape', 0, 16, 1321, '2012-10-01 15:58:04.380000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2306 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2306 THEN 2299 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2299 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2306 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1051, 2306)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1051, 2299) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1051 AND "spree_option_types"."id" = 629 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1051) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:04.415000', 629, 1, 1051, '2012-10-01 15:58:04.415000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.422000' WHERE "spree_products"."id" = 1051 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.430000' WHERE "spree_products"."id" = 1051  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3749, 1258) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.435000' WHERE "spree_products"."id" = 1051 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.499000' WHERE "spree_products"."id" = 1051  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3750, 1259) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 629 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.508000' WHERE "spree_products"."id" = 1051 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.512000' WHERE "spree_products"."id" = 1051  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3751, 1260) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 Spree::OptionType Load (2.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.520000', 'print_type', 0, 'Print type', '2012-10-01 15:58:04.520000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1051 AND "spree_option_types"."id" = 630 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1051) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:04.577000', 630, 2, 1051, '2012-10-01 15:58:04.577000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 630 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 630) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.583000', 'black_white', 630, 1, NULL, '2012-10-01 15:58:04.583000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.601000' WHERE "spree_products"."id" = 1051 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003_4', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.604000' WHERE "spree_products"."id" = 1051  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3752, 1261) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 630 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 630) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:04.608000', 'colour', 630, 2, NULL, '2012-10-01 15:58:04.608000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.614000' WHERE "spree_products"."id" = 1051 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1051, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:04.616000' WHERE "spree_products"."id" = 1051  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3753, 1262) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3749 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3750 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3751 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3752 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3753 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.272000' WHERE "spree_products"."id" = 1051  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3749 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.274000' WHERE "spree_products"."id" = 1051 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.277000' WHERE "spree_products"."id" = 1051  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3750 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.280000' WHERE "spree_products"."id" = 1051 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.282000' WHERE "spree_products"."id" = 1051  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3751 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.297000' WHERE "spree_products"."id" = 1051 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.300000' WHERE "spree_products"."id" = 1051  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3752 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.303000' WHERE "spree_products"."id" = 1051 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1051 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.306000' WHERE "spree_products"."id" = 1051  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3753 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.308000' WHERE "spree_products"."id" = 1051 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1051) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:05.340000' WHERE "spree_products"."id" = 1051 Row org.apache.poi.hssf.usermodel.HSSFRow@9c4114 succesfully SAVED : ID 1051 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (1.0ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (2.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1050 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1051 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1049 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1049 ORDER BY spree_option_types.position Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3741 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3742 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 629 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3743 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (4.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (26.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:05.626000', 'Paintings', '2012-10-01 15:58:05.626000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1325 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:05.634000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1325, '2012-10-01 15:58:05.634000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:05.645000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1325, '2012-10-01 15:58:05.645000')  (1.0ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:05.687000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:05.687000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.725000' WHERE "spree_products"."id" = 1052 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1052, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.728000' WHERE "spree_products"."id" = 1052  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3754 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.734000' WHERE "spree_products"."id" = 1052  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1052  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:05.742000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:05.742000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:05.744000', NULL, 955, '2012-10-01 15:58:05.744000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1052, "updated_at" = '2012-10-01 15:58:05.747000' WHERE "spree_product_properties"."id" = 1161 Created New ProductProperty # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1325 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1052 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1052, 2307) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:05.770000', 'WaterColour', '2012-10-01 15:58:05.770000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1326 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:05.795000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1326, '2012-10-01 15:58:05.795000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1052, 2309) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:05.845000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:05.845000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1052 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1052) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:05.862000', 631, 1, 1052, '2012-10-01 15:58:05.862000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 631 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 631) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:05.873000', 'jpeg', 631, 1, NULL, '2012-10-01 15:58:05.873000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.913000' WHERE "spree_products"."id" = 1052 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1052, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.915000' WHERE "spree_products"."id" = 1052  (2.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3755, 1263) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1052 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 631 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 631) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:05.935000', 'PDF', 631, 2, NULL, '2012-10-01 15:58:05.935000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.960000' WHERE "spree_products"."id" = 1052 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1052, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.962000' WHERE "spree_products"."id" = 1052  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3756, 1264) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1052 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 631 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 631) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:05.988000', 'PNG', 631, 3, NULL, '2012-10-01 15:58:05.988000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.993000' WHERE "spree_products"."id" = 1052 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1052, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:05.995000' WHERE "spree_products"."id" = 1052  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3757, 1265) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3755 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3756 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3757 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.043000' WHERE "spree_products"."id" = 1052  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3755 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.046000' WHERE "spree_products"."id" = 1052 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.048000' WHERE "spree_products"."id" = 1052  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3756 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.051000' WHERE "spree_products"."id" = 1052 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1052 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.060000' WHERE "spree_products"."id" = 1052  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3757 SQL (5.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.061000' WHERE "spree_products"."id" = 1052 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1052) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:06.079000' WHERE "spree_products"."id" = 1052 Row org.apache.poi.hssf.usermodel.HSSFRow@f75ce4 succesfully SAVED : ID 1052 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:06.101000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:06.101000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.105000' WHERE "spree_products"."id" = 1053 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1053, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.107000' WHERE "spree_products"."id" = 1053  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3758 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.111000' WHERE "spree_products"."id" = 1053  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1053  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.125000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:06.125000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:06.127000', NULL, 956, '2012-10-01 15:58:06.127000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1053, "updated_at" = '2012-10-01 15:58:06.131000' WHERE "spree_product_properties"."id" = 1162 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1325 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1053 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1053, 2307) Spree::Product Exists (2.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:06.157000', 'Oils', '2012-10-01 15:58:06.157000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1327 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.161000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1327, '2012-10-01 15:58:06.161000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1053, 2310) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1325 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2307 AND "spree_taxons"."taxonomy_id" = 1325 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.174000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2307, 'paintings/nature', 0, 10, 1325, '2012-10-01 15:58:06.174000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2311 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2311 THEN 2307 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2311 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2311 AND "spree_taxons"."taxonomy_id" = 1325 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2311 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.200000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2311, 'paintings/nature/seascape', 0, 12, 1325, '2012-10-01 15:58:06.200000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2311 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2312 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2312 THEN 2311 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2311 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2312 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1053, 2311)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1053, 2312) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1053 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1053) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:06.220000', 631, 1, 1053, '2012-10-01 15:58:06.220000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 631 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.226000' WHERE "spree_products"."id" = 1053 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1053, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.228000' WHERE "spree_products"."id" = 1053  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3759, 1263) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1053 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 631 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.239000' WHERE "spree_products"."id" = 1053 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1053, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.241000' WHERE "spree_products"."id" = 1053  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3760, 1264) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1053 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 631 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.254000' WHERE "spree_products"."id" = 1053 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1053, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.257000' WHERE "spree_products"."id" = 1053  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3761, 1265) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3759 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3760 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3761 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.283000' WHERE "spree_products"."id" = 1053  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3759 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.286000' WHERE "spree_products"."id" = 1053 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.288000' WHERE "spree_products"."id" = 1053  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3760 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.289000' WHERE "spree_products"."id" = 1053 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1053 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.292000' WHERE "spree_products"."id" = 1053  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3761 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.294000' WHERE "spree_products"."id" = 1053 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1053) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:06.300000' WHERE "spree_products"."id" = 1053 Row org.apache.poi.hssf.usermodel.HSSFRow@64e032 succesfully SAVED : ID 1053 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:06.315000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:06.315000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.318000' WHERE "spree_products"."id" = 1054 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.322000' WHERE "spree_products"."id" = 1054  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3762 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.326000' WHERE "spree_products"."id" = 1054  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1054  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.336000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:06.336000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:06.343000', NULL, 957, '2012-10-01 15:58:06.343000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1054, "updated_at" = '2012-10-01 15:58:06.346000' WHERE "spree_product_properties"."id" = 1163 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:06.351000', NULL, 956, '2012-10-01 15:58:06.351000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1054, "updated_at" = '2012-10-01 15:58:06.353000' WHERE "spree_product_properties"."id" = 1164 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.357000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:06.357000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:06.360000', NULL, 958, '2012-10-01 15:58:06.360000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1054, "updated_at" = '2012-10-01 15:58:06.365000' WHERE "spree_product_properties"."id" = 1165 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:06.370000', 'Drawings', '2012-10-01 15:58:06.370000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1328 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.375000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1328, '2012-10-01 15:58:06.375000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1054 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1054, 2313) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1325 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2307 AND "spree_taxons"."taxonomy_id" = 1325 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.387000', NULL, NULL, NULL, NULL, NULL, 15, 'Landscape', 2307, 'paintings/landscape', 0, 16, 1325, '2012-10-01 15:58:06.387000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2314 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2314 THEN 2307 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2307 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2314 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1054, 2314)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1054, 2307) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1054 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1054) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:06.411000', 631, 1, 1054, '2012-10-01 15:58:06.411000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 631 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.418000' WHERE "spree_products"."id" = 1054 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.419000' WHERE "spree_products"."id" = 1054  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3763, 1263) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1054 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 631 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.438000' WHERE "spree_products"."id" = 1054 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003_2', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.440000' WHERE "spree_products"."id" = 1054  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3764, 1264) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1054 AND "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 631 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.451000' WHERE "spree_products"."id" = 1054 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.452000' WHERE "spree_products"."id" = 1054  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3765, 1265) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.460000', 'print_type', 0, 'Print type', '2012-10-01 15:58:06.460000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1054 AND "spree_option_types"."id" = 632 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1054) ORDER BY position DESC LIMIT 1 SQL (24.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:06.481000', 632, 2, 1054, '2012-10-01 15:58:06.481000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 632 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 632) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.509000', 'black_white', 632, 1, NULL, '2012-10-01 15:58:06.509000')  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.520000' WHERE "spree_products"."id" = 1054 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.522000' WHERE "spree_products"."id" = 1054  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3766, 1266) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1054 AND "spree_option_types"."id" = 632 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 632 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 632) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:06.540000', 'colour', 632, 2, NULL, '2012-10-01 15:58:06.540000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.556000' WHERE "spree_products"."id" = 1054 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1054, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.559000' WHERE "spree_products"."id" = 1054  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3767, 1267) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3763 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3764 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3765 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3766 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3767 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.608000' WHERE "spree_products"."id" = 1054  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3763 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.610000' WHERE "spree_products"."id" = 1054 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.612000' WHERE "spree_products"."id" = 1054  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3764 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.616000' WHERE "spree_products"."id" = 1054 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.618000' WHERE "spree_products"."id" = 1054  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3765 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.619000' WHERE "spree_products"."id" = 1054 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.621000' WHERE "spree_products"."id" = 1054  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3766 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.623000' WHERE "spree_products"."id" = 1054 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1054 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.625000' WHERE "spree_products"."id" = 1054  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3767 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.627000' WHERE "spree_products"."id" = 1054 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1054) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:06.632000' WHERE "spree_products"."id" = 1054 Row org.apache.poi.hssf.usermodel.HSSFRow@183918f succesfully SAVED : ID 1054 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1053 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1054 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1052 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1052 ORDER BY spree_option_types.position Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3755 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3756 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 631 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3757 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (16.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (1.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:06.918000', 'Paintings', '2012-10-01 15:58:06.918000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1329 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.924000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1329, '2012-10-01 15:58:06.924000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:06.934000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1329, '2012-10-01 15:58:06.934000')  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) SELECT COUNT(*) FROM "spree_variants"  Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:06.982000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:06.982000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.987000' WHERE "spree_products"."id" = 1055 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1055, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.992000' WHERE "spree_products"."id" = 1055  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3768 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:06.995000' WHERE "spree_products"."id" = 1055  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1055  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.026000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:07.026000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:07.030000', NULL, 959, '2012-10-01 15:58:07.030000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1055, "updated_at" = '2012-10-01 15:58:07.033000' WHERE "spree_product_properties"."id" = 1166 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1329 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1055 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1055, 2315) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:07.058000', 'WaterColour', '2012-10-01 15:58:07.058000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1330 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.062000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1330, '2012-10-01 15:58:07.062000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1055, 2317) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.078000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:07.078000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1055 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1055) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.090000', 633, 1, 1055, '2012-10-01 15:58:07.090000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 633 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 633) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.098000', 'jpeg', 633, 1, NULL, '2012-10-01 15:58:07.098000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.102000' WHERE "spree_products"."id" = 1055 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1055, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.117000' WHERE "spree_products"."id" = 1055  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3769, 1268) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1055 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 633 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 633) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.130000', 'PDF', 633, 2, NULL, '2012-10-01 15:58:07.130000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.136000' WHERE "spree_products"."id" = 1055 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1055, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.138000' WHERE "spree_products"."id" = 1055  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3770, 1269) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1055 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 633 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 633) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.154000', 'PNG', 633, 3, NULL, '2012-10-01 15:58:07.154000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.158000' WHERE "spree_products"."id" = 1055 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1055, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.161000' WHERE "spree_products"."id" = 1055  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3771, 1270) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 Current value to assign : Current value to assign : Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3769 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3770 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3771 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.200000' WHERE "spree_products"."id" = 1055  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3769 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.202000' WHERE "spree_products"."id" = 1055 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.204000' WHERE "spree_products"."id" = 1055  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3770 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.205000' WHERE "spree_products"."id" = 1055 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1055 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.207000' WHERE "spree_products"."id" = 1055  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3771 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.209000' WHERE "spree_products"."id" = 1055 Saving csv row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320.00test_pp_001PaintingsWaterColourmime_type:jpegmime_type:PDFmime_type:PNG12|6|7 to table object : # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1055) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:07.213000' WHERE "spree_products"."id" = 1055 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:07.221000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:07.221000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.225000' WHERE "spree_products"."id" = 1056 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1056, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.227000' WHERE "spree_products"."id" = 1056  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3772 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.230000' WHERE "spree_products"."id" = 1056  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1056  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.239000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:07.239000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:07.243000', NULL, 960, '2012-10-01 15:58:07.243000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1056, "updated_at" = '2012-10-01 15:58:07.244000' WHERE "spree_product_properties"."id" = 1167 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1329 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1056 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1056, 2315) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:07.262000', 'Oils', '2012-10-01 15:58:07.262000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1331 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.266000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1331, '2012-10-01 15:58:07.266000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1056, 2318) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1329 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2315 AND "spree_taxons"."taxonomy_id" = 1329 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.279000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2315, 'paintings/nature', 0, 10, 1329, '2012-10-01 15:58:07.279000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2319 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2319 THEN 2315 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2319 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2319 AND "spree_taxons"."taxonomy_id" = 1329 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2319 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.297000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2319, 'paintings/nature/seascape', 0, 12, 1329, '2012-10-01 15:58:07.297000') Spree::Taxon Load (5.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2319 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2320 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2320 THEN 2319 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2319 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2320 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1056, 2319)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1056, 2320) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1056 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1056) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.328000', 633, 1, 1056, '2012-10-01 15:58:07.328000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 633 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.337000' WHERE "spree_products"."id" = 1056 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1056, 'DEMO_002_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.339000' WHERE "spree_products"."id" = 1056  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3773, 1268) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1056 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 633 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.352000' WHERE "spree_products"."id" = 1056 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1056, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.354000' WHERE "spree_products"."id" = 1056  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3774, 1269) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1056 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 633 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.370000' WHERE "spree_products"."id" = 1056 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1056, 'DEMO_002_3', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.372000' WHERE "spree_products"."id" = 1056  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3775, 1270) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 Current value to assign : Current value to assign : Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3773 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3774 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3775 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.412000' WHERE "spree_products"."id" = 1056  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3773 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.414000' WHERE "spree_products"."id" = 1056 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.416000' WHERE "spree_products"."id" = 1056  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3774 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.418000' WHERE "spree_products"."id" = 1056 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1056 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.421000' WHERE "spree_products"."id" = 1056  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3775 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.422000' WHERE "spree_products"."id" = 1056 Saving csv row DEMO_002Demo Excel Load via Jrubyless blah2011-05-14100.0030.00test_pp_003PaintingsOilsPaintings>Nature>Seascapemime_type:jpegmime_type:PDFmime_type:PNG5|4|2 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1056) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:07.430000' WHERE "spree_products"."id" = 1056 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:07.439000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:07.439000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.442000' WHERE "spree_products"."id" = 1057 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.446000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3776 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.452000' WHERE "spree_products"."id" = 1057  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1057  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.463000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:07.463000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:07.465000', NULL, 961, '2012-10-01 15:58:07.465000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1057, "updated_at" = '2012-10-01 15:58:07.467000' WHERE "spree_product_properties"."id" = 1168 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:07.471000', NULL, 960, '2012-10-01 15:58:07.471000', 'Example free value')  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1057, "updated_at" = '2012-10-01 15:58:07.473000' WHERE "spree_product_properties"."id" = 1169 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.477000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:07.477000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:07.479000', NULL, 962, '2012-10-01 15:58:07.479000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1057, "updated_at" = '2012-10-01 15:58:07.496000' WHERE "spree_product_properties"."id" = 1170 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:07.500000', 'Drawings', '2012-10-01 15:58:07.500000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1332 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.506000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1332, '2012-10-01 15:58:07.506000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1057 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1057, 2321) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1329 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2315 AND "spree_taxons"."taxonomy_id" = 1329 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.517000', NULL, NULL, NULL, NULL, NULL, 15, 'Landscape', 2315, 'paintings/landscape', 0, 16, 1329, '2012-10-01 15:58:07.517000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2322 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2322 THEN 2315 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2315 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2322 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1057, 2322)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1057, 2315) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1057 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1057) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.541000', 633, 1, 1057, '2012-10-01 15:58:07.541000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 633 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.548000' WHERE "spree_products"."id" = 1057 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.571000' WHERE "spree_products"."id" = 1057  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3777, 1268) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1057 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 633 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.595000' WHERE "spree_products"."id" = 1057 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.599000' WHERE "spree_products"."id" = 1057  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3778, 1269) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1057 AND "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 633 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.619000' WHERE "spree_products"."id" = 1057 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.621000' WHERE "spree_products"."id" = 1057  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3779, 1270) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.629000', 'print_type', 0, 'Print type', '2012-10-01 15:58:07.629000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1057 AND "spree_option_types"."id" = 634 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1057) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.638000', 634, 2, 1057, '2012-10-01 15:58:07.638000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 634 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 634) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.645000', 'black_white', 634, 1, NULL, '2012-10-01 15:58:07.645000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.650000' WHERE "spree_products"."id" = 1057 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.670000' WHERE "spree_products"."id" = 1057  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3780, 1271) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1057 AND "spree_option_types"."id" = 634 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 634 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 634) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.682000', 'colour', 634, 2, NULL, '2012-10-01 15:58:07.682000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.694000' WHERE "spree_products"."id" = 1057 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1057, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.697000' WHERE "spree_products"."id" = 1057  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3781, 1272) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3777 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3778 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3779 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3780 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3781 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.732000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3777 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.734000' WHERE "spree_products"."id" = 1057 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.737000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3778 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.739000' WHERE "spree_products"."id" = 1057 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.741000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3779 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.743000' WHERE "spree_products"."id" = 1057 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.745000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3780 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.746000' WHERE "spree_products"."id" = 1057 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1057 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.749000' WHERE "spree_products"."id" = 1057  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3781 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.752000' WHERE "spree_products"."id" = 1057 Saving csv row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002test_pp_003:Example free valueyet_another_propertyDrawingsPaintings>Landscapemime_type:jpegmime_type:PDFmime_type:PNGprint_type:black_whiteprint_type:colour12|4|7|12|18 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1057) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:07.756000' WHERE "spree_products"."id" = 1057  (1.0ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1056 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1057 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1055 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1055 ORDER BY spree_option_types.position Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3769 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3770 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 633 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3771 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (5.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (1.0ms) DELETE FROM "spree_product_properties" SQL (1.0ms) DELETE FROM "spree_variants" SQL (14.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:07.859000', 'Paintings', '2012-10-01 15:58:07.859000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1333 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.865000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1333, '2012-10-01 15:58:07.865000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:07.874000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1333, '2012-10-01 15:58:07.874000')  (1.0ms) SELECT COUNT(*) FROM "spree_taxons" Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:07.895000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:07.895000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.899000' WHERE "spree_products"."id" = 1058 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1058, 'MV_001', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.902000' WHERE "spree_products"."id" = 1058  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3782 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.920000' WHERE "spree_products"."id" = 1058  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1058  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.928000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:07.928000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1058 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1058) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.937000', 635, 1, 1058, '2012-10-01 15:58:07.937000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.940000', 'print_type', 0, 'Print type', '2012-10-01 15:58:07.940000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1058 AND "spree_option_types"."id" = 636 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1058) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:07.949000', 636, 2, 1058, '2012-10-01 15:58:07.949000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 635) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.966000', 'jpeg', 635, 1, NULL, '2012-10-01 15:58:07.966000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 636) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:07.973000', 'colour', 636, 1, NULL, '2012-10-01 15:58:07.973000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.991000' WHERE "spree_products"."id" = 1058 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1058, 'MV_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:07.994000' WHERE "spree_products"."id" = 1058  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3783, 1273)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3783, 1274) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 635) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.000000', 'PDF', 635, 2, NULL, '2012-10-01 15:58:08.000000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.008000' WHERE "spree_products"."id" = 1058 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1058, 'MV_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.012000' WHERE "spree_products"."id" = 1058  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3784, 1275)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3784, 1274) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1058) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1058 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 635) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.032000', 'PNG', 635, 3, NULL, '2012-10-01 15:58:08.032000')  (2.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.040000' WHERE "spree_products"."id" = 1058 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1058, 'MV_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.042000' WHERE "spree_products"."id" = 1058  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3785, 1276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1058) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3783 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3784 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3785 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1058) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.060000' WHERE "spree_products"."id" = 1058  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3783 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.062000' WHERE "spree_products"."id" = 1058 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.064000' WHERE "spree_products"."id" = 1058  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3784 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.066000' WHERE "spree_products"."id" = 1058 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1058 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.068000' WHERE "spree_products"."id" = 1058  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3785 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.069000' WHERE "spree_products"."id" = 1058 Saving csv row MV_001Demo Product for AR Loaderblah blah2011-02-14399.99320.00mime_type:jpeg, PDF;print_type:colourmime_type:PNG12|6|7 to table object : # Spree::Product Exists (18.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1058) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:08.092000' WHERE "spree_products"."id" = 1058 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:08.102000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:08.102000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.108000' WHERE "spree_products"."id" = 1059 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1059, 'MV_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.111000' WHERE "spree_products"."id" = 1059  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3786 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.114000' WHERE "spree_products"."id" = 1059  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1059  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1059 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1059) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:08.125000', 635, 1, 1059, '2012-10-01 15:58:08.125000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1059 AND "spree_option_types"."id" = 636 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1059) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:08.141000', 636, 2, 1059, '2012-10-01 15:58:08.141000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 636) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.144000', 'black_white', 636, 2, NULL, '2012-10-01 15:58:08.144000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.157000' WHERE "spree_products"."id" = 1059 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1059, 'MV_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.159000' WHERE "spree_products"."id" = 1059  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3787, 1277)  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3787, 1273) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1059) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1059 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1059 AND "spree_option_types"."id" = 636 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 635 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.182000' WHERE "spree_products"."id" = 1059 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1059, 'MV_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.184000' WHERE "spree_products"."id" = 1059  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3788, 1277)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3788, 1276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1059) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3787 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3788 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1059) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.206000' WHERE "spree_products"."id" = 1059  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3787 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.207000' WHERE "spree_products"."id" = 1059 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1059 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.209000' WHERE "spree_products"."id" = 1059  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3788 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.211000' WHERE "spree_products"."id" = 1059 Saving csv row MV_002Demo Excel Load via Jrubyless blah2011-05-14100.0030.00mime_type:jpeg;print_type:black_whitemime_type:PNG;print_type:black_white5|4 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1059) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1059 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-01 15:58:08.216000' WHERE "spree_products"."id" = 1059 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:08.223000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:08.223000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.234000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.238000' WHERE "spree_products"."id" = 1060  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3789 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.241000' WHERE "spree_products"."id" = 1060  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:08.252000', 635, 1, 1060, '2012-10-01 15:58:08.252000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 636 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:08.258000', 636, 2, 1060, '2012-10-01 15:58:08.258000') Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.261000', 'size', 0, 'Size', '2012-10-01 15:58:08.261000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 637 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:08.266000', 637, 3, 1060, '2012-10-01 15:58:08.266000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 637 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 637) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.270000', 'large', 637, 1, NULL, '2012-10-01 15:58:08.270000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.275000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.277000' WHERE "spree_products"."id" = 1060  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3790, 1274)  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3790, 1278)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3790, 1273) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 636 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 636) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:08.281000', 'sepia', 636, 3, NULL, '2012-10-01 15:58:08.281000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 637 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 635 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.304000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.306000' WHERE "spree_products"."id" = 1060  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3791, 1279)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3791, 1278)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3791, 1273) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 635 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.323000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.325000' WHERE "spree_products"."id" = 1060  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3792, 1276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 635 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 635 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.341000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.343000' WHERE "spree_products"."id" = 1060  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3793, 1275) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060 AND "spree_option_types"."id" = 636 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 636 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.354000' WHERE "spree_products"."id" = 1060 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1060, 'MV_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:08.357000' WHERE "spree_products"."id" = 1060  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3794, 1277) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060 LIMIT 1 Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row MV_003Demo third row in futuremore blah blah2012-07-0150.3423.34mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNGmime_type:PDF|print_type:black_white12|4|7|12 to table object : # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1058 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1058 ORDER BY spree_option_types.position Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 3783 Booted Spree using version 1.1.3 SQL (10.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (NULL, 0, '2012-10-01 15:58:18.374000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:18.374000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.378000' WHERE "spree_products"."id" = 1061 SQL (2.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1061, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.383000' WHERE "spree_products"."id" = 1061  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3795 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.389000' WHERE "spree_products"."id" = 1061  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1061  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:18.399000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:18.399000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:18.401000', NULL, 963, '2012-10-01 15:58:18.401000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1061, "updated_at" = '2012-10-01 15:58:18.403000' WHERE "spree_product_properties"."id" = 1171 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:18.409000', 'Paintings', '2012-10-01 15:58:18.409000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1334 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:18.443000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1334, '2012-10-01 15:58:18.443000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1061 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1061, 2325) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:18.453000', 'WaterColour', '2012-10-01 15:58:18.453000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1335 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:18.457000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1335, '2012-10-01 15:58:18.457000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1061, 2326) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:18.468000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:18.468000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1061 AND "spree_option_types"."id" = 638 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1061) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:18.477000', 638, 1, 1061, '2012-10-01 15:58:18.477000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 638) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:18.481000', 'jpeg', 638, 1, NULL, '2012-10-01 15:58:18.481000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.484000' WHERE "spree_products"."id" = 1061 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1061, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.486000' WHERE "spree_products"."id" = 1061  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3796, 1280) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 638) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:18.491000', 'PDF', 638, 2, NULL, '2012-10-01 15:58:18.491000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.494000' WHERE "spree_products"."id" = 1061 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1061, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.496000' WHERE "spree_products"."id" = 1061  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3797, 1281) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 638) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:18.499000', 'PNG', 638, 3, NULL, '2012-10-01 15:58:18.499000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.502000' WHERE "spree_products"."id" = 1061 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1061, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.504000' WHERE "spree_products"."id" = 1061  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3798, 1282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3796 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3797 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3798 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.526000' WHERE "spree_products"."id" = 1061  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3796 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.527000' WHERE "spree_products"."id" = 1061 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.529000' WHERE "spree_products"."id" = 1061  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3797 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.530000' WHERE "spree_products"."id" = 1061 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1061 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.532000' WHERE "spree_products"."id" = 1061  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3798 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:18.534000' WHERE "spree_products"."id" = 1061 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3795 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3795) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:58:18.604000', 240, 1, 'Spree::Image', 3795, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row DEMO_001Demo Product for AR Loaderblah blah14/02/2011399.99320test_pp_001Paintings|WaterColourmime_type:jpeg,PDF,PNG12|6|7fixtures/images/DEMO_001_ror_bag.jpeg to table object : # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1061) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:19.362000' WHERE "spree_products"."id" = 1061 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (24.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (NULL, 0, '2012-10-01 15:58:19.413000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:19.413000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.418000' WHERE "spree_products"."id" = 1062 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1062, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.420000' WHERE "spree_products"."id" = 1062  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3799 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.422000' WHERE "spree_products"."id" = 1062  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1062  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:19.442000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:19.442000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:19.445000', NULL, 964, '2012-10-01 15:58:19.445000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1062, "updated_at" = '2012-10-01 15:58:19.446000' WHERE "spree_product_properties"."id" = 1172 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1334 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1062 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1062, 2325) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:19.453000', 'Landscape', '2012-10-01 15:58:19.453000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1336 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:19.458000', NULL, NULL, NULL, NULL, NULL, 5, 'Landscape', NULL, 'landscape', 0, 6, 1336, '2012-10-01 15:58:19.458000') Product assigned to Taxons : ["Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1062, 2327) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:19.465000', 'Oils', '2012-10-01 15:58:19.465000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1337 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:19.469000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1337, '2012-10-01 15:58:19.469000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1062, 2328) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1062 AND "spree_option_types"."id" = 638 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1062) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:19.481000', 638, 1, 1062, '2012-10-01 15:58:19.481000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.485000' WHERE "spree_products"."id" = 1062 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1062, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.487000' WHERE "spree_products"."id" = 1062  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3800, 1280) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.492000' WHERE "spree_products"."id" = 1062 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1062, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.494000' WHERE "spree_products"."id" = 1062  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3801, 1281) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.498000' WHERE "spree_products"."id" = 1062 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1062, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.500000' WHERE "spree_products"."id" = 1062  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3802, 1282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3800 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3801 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3802 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.522000' WHERE "spree_products"."id" = 1062  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3800 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.524000' WHERE "spree_products"."id" = 1062 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.526000' WHERE "spree_products"."id" = 1062  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3801 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.527000' WHERE "spree_products"."id" = 1062 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1062 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.529000' WHERE "spree_products"."id" = 1062  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3802 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:19.531000' WHERE "spree_products"."id" = 1062 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3799 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3799) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:58:19.602000', 2424, 1, 'Spree::Image', 3799, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row DEMO_002Demo Excel Load via Jrubyless blah14/05/201110030test_pp_003Paintings|Landscape|Oilsmime_type:jpeg, PDF,PNG5|4|2fixtures/images/DEMO_002_Powerstation.jpg to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1062) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:27.963000' WHERE "spree_products"."id" = 1062 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (2.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-01-07 00:00:00.000000', 0, '2012-10-01 15:58:27.976000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:27.976000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:27.979000' WHERE "spree_products"."id" = 1063 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:27.982000' WHERE "spree_products"."id" = 1063  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3803 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:27.985000' WHERE "spree_products"."id" = 1063  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1063  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:27.994000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:27.994000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:27.996000', NULL, 965, '2012-10-01 15:58:27.996000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1063, "updated_at" = '2012-10-01 15:58:27.999000' WHERE "spree_product_properties"."id" = 1173 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:28.002000', NULL, 964, '2012-10-01 15:58:28.002000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1063, "updated_at" = '2012-10-01 15:58:28.004000' WHERE "spree_product_properties"."id" = 1174 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (3.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:28.006000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:28.006000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:28.011000', NULL, 966, '2012-10-01 15:58:28.011000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1063, "updated_at" = '2012-10-01 15:58:28.013000' WHERE "spree_product_properties"."id" = 1175 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:28.017000', 'Drawings', '2012-10-01 15:58:28.017000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1338 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:28.024000', NULL, NULL, NULL, NULL, NULL, 9, 'Drawings', NULL, 'drawings', 0, 10, 1338, '2012-10-01 15:58:28.024000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1063 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1063, 2329) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1063 AND "spree_option_types"."id" = 638 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1063) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:28.038000', 638, 1, 1063, '2012-10-01 15:58:28.038000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.043000' WHERE "spree_products"."id" = 1063 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.045000' WHERE "spree_products"."id" = 1063  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3804, 1280) Spree::OptionValue Load (2.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.061000' WHERE "spree_products"."id" = 1063 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.063000' WHERE "spree_products"."id" = 1063  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3805, 1281) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 638 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.071000' WHERE "spree_products"."id" = 1063 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.073000' WHERE "spree_products"."id" = 1063  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3806, 1282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:28.078000', 'print_type', 0, 'Print type', '2012-10-01 15:58:28.078000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1063 AND "spree_option_types"."id" = 639 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1063) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:28.084000', 639, 2, 1063, '2012-10-01 15:58:28.084000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 639 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 639) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:28.088000', 'black_white', 639, 1, NULL, '2012-10-01 15:58:28.088000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.096000' WHERE "spree_products"."id" = 1063 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.099000' WHERE "spree_products"."id" = 1063  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3807, 1283) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 639 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 639) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:28.103000', 'colour', 639, 2, NULL, '2012-10-01 15:58:28.103000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.108000' WHERE "spree_products"."id" = 1063 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1063, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.110000' WHERE "spree_products"."id" = 1063  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3808, 1284) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3804 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3805 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3806 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3807 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3808 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.134000' WHERE "spree_products"."id" = 1063  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3804 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.136000' WHERE "spree_products"."id" = 1063 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.138000' WHERE "spree_products"."id" = 1063  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3805 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.139000' WHERE "spree_products"."id" = 1063 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.142000' WHERE "spree_products"."id" = 1063  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3806 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.144000' WHERE "spree_products"."id" = 1063 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.147000' WHERE "spree_products"."id" = 1063  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3807 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.150000' WHERE "spree_products"."id" = 1063 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1063 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.152000' WHERE "spree_products"."id" = 1063  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3808 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:28.154000' WHERE "spree_products"."id" = 1063 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1 Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3803 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3803) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_003_ror_mug.jpeg', 11841, 240, '2012-10-01 15:58:28.165000', 240, 1, 'Spree::Image', 3803, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row DEMO_003Demo third row in futuremore blah blah01/07/201250.3423.34test_pp_002|test_pp_003:Example free value|yet_another_propertyDrawingsmime_type:jpeg,PDF,PNG|print_type:black_white,colour12|4|7|12|18fixtures/images/DEMO_003_ror_mug.jpeg to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1063) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:29.123000' WHERE "spree_products"."id" = 1063  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 't') LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3795) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1061)) Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3795 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1061 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3795) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1061)) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1062 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3799) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1062)) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1063 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3803) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1063)) SQL (4.0ms) DELETE FROM "spree_products" SQL (4.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:29.408000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:29.408000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.414000' WHERE "spree_products"."id" = 1064 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1064, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.416000' WHERE "spree_products"."id" = 1064  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3809 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.419000' WHERE "spree_products"."id" = 1064  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1064  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:29.429000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:29.429000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:29.438000', NULL, 967, '2012-10-01 15:58:29.438000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1064, "updated_at" = '2012-10-01 15:58:29.442000' WHERE "spree_product_properties"."id" = 1176 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:29.447000', 'Paintings', '2012-10-01 15:58:29.447000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1339 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (3.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:29.455000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1339, '2012-10-01 15:58:29.455000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1064 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1064, 2330) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:29.464000', 'WaterColour', '2012-10-01 15:58:29.464000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1340 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:29.469000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1340, '2012-10-01 15:58:29.469000') Product assigned to Taxons : ["WaterColour"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1064, 2331) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:29.478000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:29.478000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1064 AND "spree_option_types"."id" = 640 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1064) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:29.486000', 640, 1, 1064, '2012-10-01 15:58:29.486000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 640) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:29.491000', 'jpeg', 640, 1, NULL, '2012-10-01 15:58:29.491000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.495000' WHERE "spree_products"."id" = 1064 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1064, 'DEMO_001_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.497000' WHERE "spree_products"."id" = 1064  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3810, 1285) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 640) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:29.527000', 'PDF', 640, 2, NULL, '2012-10-01 15:58:29.527000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.531000' WHERE "spree_products"."id" = 1064 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1064, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.533000' WHERE "spree_products"."id" = 1064  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3811, 1286) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 640) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:29.537000', 'PNG', 640, 3, NULL, '2012-10-01 15:58:29.537000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.540000' WHERE "spree_products"."id" = 1064 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1064, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.542000' WHERE "spree_products"."id" = 1064  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3812, 1287) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3810 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3811 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3812 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.567000' WHERE "spree_products"."id" = 1064  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3810 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.568000' WHERE "spree_products"."id" = 1064 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.570000' WHERE "spree_products"."id" = 1064  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3811 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.572000' WHERE "spree_products"."id" = 1064 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1064 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.574000' WHERE "spree_products"."id" = 1064  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3812 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:29.576000' WHERE "spree_products"."id" = 1064 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3809 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3809) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:58:29.585000', 240, 1, 'Spree::Image', 3809, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1064) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:30.341000' WHERE "spree_products"."id" = 1064 Row org.apache.poi.hssf.usermodel.HSSFRow@ac7f07 succesfully SAVED : ID 1064 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:30.387000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:30.387000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.391000' WHERE "spree_products"."id" = 1065 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1065, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.396000' WHERE "spree_products"."id" = 1065  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3813 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.399000' WHERE "spree_products"."id" = 1065  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1065  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:30.408000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:30.408000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:30.410000', NULL, 968, '2012-10-01 15:58:30.410000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1065, "updated_at" = '2012-10-01 15:58:30.412000' WHERE "spree_product_properties"."id" = 1177 Created New ProductProperty # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1339 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1065 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1065, 2330) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:30.422000', 'Landscape', '2012-10-01 15:58:30.422000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1341 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:30.425000', NULL, NULL, NULL, NULL, NULL, 5, 'Landscape', NULL, 'landscape', 0, 6, 1341, '2012-10-01 15:58:30.425000') Product assigned to Taxons : ["Landscape"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1065, 2332) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:30.430000', 'Oils', '2012-10-01 15:58:30.430000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1342 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:30.433000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1342, '2012-10-01 15:58:30.433000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1065, 2333) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1065 AND "spree_option_types"."id" = 640 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1065) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:30.444000', 640, 1, 1065, '2012-10-01 15:58:30.444000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.466000' WHERE "spree_products"."id" = 1065 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1065, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.472000' WHERE "spree_products"."id" = 1065  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3814, 1285) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.476000' WHERE "spree_products"."id" = 1065 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1065, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.479000' WHERE "spree_products"."id" = 1065  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3815, 1286) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.484000' WHERE "spree_products"."id" = 1065 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1065, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.485000' WHERE "spree_products"."id" = 1065  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3816, 1287) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3814 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3815 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3816 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.510000' WHERE "spree_products"."id" = 1065  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3814 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.512000' WHERE "spree_products"."id" = 1065 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.516000' WHERE "spree_products"."id" = 1065  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3815 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.519000' WHERE "spree_products"."id" = 1065 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1065 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.521000' WHERE "spree_products"."id" = 1065  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3816 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:30.523000' WHERE "spree_products"."id" = 1065 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3813 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3813) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:58:30.650000', 2424, 1, 'Spree::Image', 3813, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1065) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:39.124000' WHERE "spree_products"."id" = 1065 Row org.apache.poi.hssf.usermodel.HSSFRow@992357 succesfully SAVED : ID 1065 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:39.136000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:39.136000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.143000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.146000' WHERE "spree_products"."id" = 1066  (1.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3817 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.152000' WHERE "spree_products"."id" = 1066  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1066  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:39.160000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:39.160000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:39.162000', NULL, 969, '2012-10-01 15:58:39.162000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1066, "updated_at" = '2012-10-01 15:58:39.166000' WHERE "spree_product_properties"."id" = 1178 Created New ProductProperty # Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:39.169000', NULL, 968, '2012-10-01 15:58:39.169000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1066, "updated_at" = '2012-10-01 15:58:39.170000' WHERE "spree_product_properties"."id" = 1179 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:39.174000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:39.174000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:39.176000', NULL, 970, '2012-10-01 15:58:39.176000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1066, "updated_at" = '2012-10-01 15:58:39.177000' WHERE "spree_product_properties"."id" = 1180 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:39.184000', 'Drawings', '2012-10-01 15:58:39.184000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1343 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:39.189000', NULL, NULL, NULL, NULL, NULL, 9, 'Drawings', NULL, 'drawings', 0, 10, 1343, '2012-10-01 15:58:39.189000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1066 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1066, 2334) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1066 AND "spree_option_types"."id" = 640 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1066) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:39.234000', 640, 1, 1066, '2012-10-01 15:58:39.234000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.245000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.247000' WHERE "spree_products"."id" = 1066  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3818, 1285) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.251000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.254000' WHERE "spree_products"."id" = 1066  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3819, 1286) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 640 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.261000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.263000' WHERE "spree_products"."id" = 1066  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3820, 1287) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:39.268000', 'print_type', 0, 'Print type', '2012-10-01 15:58:39.268000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1066 AND "spree_option_types"."id" = 641 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1066) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:39.278000', 641, 2, 1066, '2012-10-01 15:58:39.278000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 641 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 641) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:39.283000', 'black_white', 641, 1, NULL, '2012-10-01 15:58:39.283000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.290000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.292000' WHERE "spree_products"."id" = 1066  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3821, 1288) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 641 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 641) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:39.296000', 'colour', 641, 2, NULL, '2012-10-01 15:58:39.296000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.302000' WHERE "spree_products"."id" = 1066 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1066, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.305000' WHERE "spree_products"."id" = 1066  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3822, 1289) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3818 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3819 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3820 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3821 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3822 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.335000' WHERE "spree_products"."id" = 1066  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3818 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.337000' WHERE "spree_products"."id" = 1066 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.339000' WHERE "spree_products"."id" = 1066  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3819 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.342000' WHERE "spree_products"."id" = 1066 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.344000' WHERE "spree_products"."id" = 1066  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3820 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.345000' WHERE "spree_products"."id" = 1066 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.347000' WHERE "spree_products"."id" = 1066  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3821 SQL (3.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.350000' WHERE "spree_products"."id" = 1066 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1066 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.354000' WHERE "spree_products"."id" = 1066  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3822 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:39.358000' WHERE "spree_products"."id" = 1066 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3817 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3817) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_003_ror_mug.jpeg', 11841, 240, '2012-10-01 15:58:39.367000', 240, 1, 'Spree::Image', 3817, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1066) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:40.230000' WHERE "spree_products"."id" = 1066 Row org.apache.poi.hssf.usermodel.HSSFRow@77ded7 succesfully SAVED : ID 1066 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3809) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1064)) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1064 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3809) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1064)) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1065 AND ("spree_variants".is_master = 't') LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3813) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1065)) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1066 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3817) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1066))  (1.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_products" SQL (9.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (43.0ms) DELETE FROM "spree_properties" SQL (4.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: #  (0.0ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:40.484000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:40.484000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.517000' WHERE "spree_products"."id" = 1067 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1067, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.521000' WHERE "spree_products"."id" = 1067  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3823 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.524000' WHERE "spree_products"."id" = 1067  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1067  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.533000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:40.533000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:40.535000', NULL, 971, '2012-10-01 15:58:40.535000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1067, "updated_at" = '2012-10-01 15:58:40.539000' WHERE "spree_product_properties"."id" = 1181 Created New ProductProperty # Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:40.543000', 'Paintings', '2012-10-01 15:58:40.543000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1344 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.547000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1344, '2012-10-01 15:58:40.547000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1067 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1067, 2335) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:40.554000', 'WaterColour', '2012-10-01 15:58:40.554000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1345 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.558000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1345, '2012-10-01 15:58:40.558000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1067, 2336) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.567000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:40.567000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1067 AND "spree_option_types"."id" = 642 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1067) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:40.576000', 642, 1, 1067, '2012-10-01 15:58:40.576000') Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 642) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.582000', 'jpeg', 642, 1, NULL, '2012-10-01 15:58:40.582000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.586000' WHERE "spree_products"."id" = 1067 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1067, 'DEMO_001_1', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.588000' WHERE "spree_products"."id" = 1067  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3824, 1290) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 642) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.617000', 'PDF', 642, 2, NULL, '2012-10-01 15:58:40.617000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.622000' WHERE "spree_products"."id" = 1067 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1067, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.624000' WHERE "spree_products"."id" = 1067  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3825, 1291) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 642) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.628000', 'PNG', 642, 3, NULL, '2012-10-01 15:58:40.628000') Spree::Product Load (29.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.661000' WHERE "spree_products"."id" = 1067 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1067, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.663000' WHERE "spree_products"."id" = 1067  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3826, 1292) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3824 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3825 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3826 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.682000' WHERE "spree_products"."id" = 1067  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3824 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.683000' WHERE "spree_products"."id" = 1067 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.685000' WHERE "spree_products"."id" = 1067  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3825 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.687000' WHERE "spree_products"."id" = 1067 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.689000' WHERE "spree_products"."id" = 1067  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3826 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.691000' WHERE "spree_products"."id" = 1067 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1067) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:40.695000' WHERE "spree_products"."id" = 1067 Row org.apache.poi.hssf.usermodel.HSSFRow@1d650f6 succesfully SAVED : ID 1067 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:40.706000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:40.706000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.710000' WHERE "spree_products"."id" = 1068 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1068, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.712000' WHERE "spree_products"."id" = 1068  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3827 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.715000' WHERE "spree_products"."id" = 1068  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1068  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.721000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:40.721000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:40.724000', NULL, 972, '2012-10-01 15:58:40.724000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1068, "updated_at" = '2012-10-01 15:58:40.726000' WHERE "spree_product_properties"."id" = 1182 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1344 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1068 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1068, 2335) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:40.739000', 'Oils', '2012-10-01 15:58:40.739000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1346 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (21.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.764000', NULL, NULL, NULL, NULL, NULL, 5, 'Oils', NULL, 'oils', 0, 6, 1346, '2012-10-01 15:58:40.764000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1068, 2337) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1344 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2335 AND "spree_taxons"."taxonomy_id" = 1344 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.773000', NULL, NULL, NULL, NULL, NULL, 7, 'Nature', 2335, 'paintings/nature', 0, 8, 1344, '2012-10-01 15:58:40.773000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2338 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2338 THEN 2335 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2338 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2338 AND "spree_taxons"."taxonomy_id" = 1344 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2338 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.786000', NULL, NULL, NULL, NULL, NULL, 9, 'Seascape', 2338, 'paintings/nature/seascape', 0, 10, 1344, '2012-10-01 15:58:40.786000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2338 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2339 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2339 THEN 2338 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2338 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2339 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1068, 2338)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1068, 2339) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1068 AND "spree_option_types"."id" = 642 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1068) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:40.806000', 642, 1, 1068, '2012-10-01 15:58:40.806000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.811000' WHERE "spree_products"."id" = 1068 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1068, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.813000' WHERE "spree_products"."id" = 1068  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3828, 1290) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.817000' WHERE "spree_products"."id" = 1068 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1068, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.819000' WHERE "spree_products"."id" = 1068  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3829, 1291) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.824000' WHERE "spree_products"."id" = 1068 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1068, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.826000' WHERE "spree_products"."id" = 1068  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3830, 1292) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3828 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3829 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3830 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.855000' WHERE "spree_products"."id" = 1068  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3828 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.857000' WHERE "spree_products"."id" = 1068 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.859000' WHERE "spree_products"."id" = 1068  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3829 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.861000' WHERE "spree_products"."id" = 1068 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.863000' WHERE "spree_products"."id" = 1068  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3830 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.891000' WHERE "spree_products"."id" = 1068 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1068) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:40.897000' WHERE "spree_products"."id" = 1068 Row org.apache.poi.hssf.usermodel.HSSFRow@178b46a succesfully SAVED : ID 1068 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:40.908000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:40.908000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.911000' WHERE "spree_products"."id" = 1069 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.913000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3831 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.915000' WHERE "spree_products"."id" = 1069  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1069  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.927000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:40.927000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:40.930000', NULL, 973, '2012-10-01 15:58:40.930000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1069, "updated_at" = '2012-10-01 15:58:40.933000' WHERE "spree_product_properties"."id" = 1183 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:40.936000', NULL, 972, '2012-10-01 15:58:40.936000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1069, "updated_at" = '2012-10-01 15:58:40.938000' WHERE "spree_product_properties"."id" = 1184 Created New ProductProperty # Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:40.942000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:40.942000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:40.945000', NULL, 974, '2012-10-01 15:58:40.945000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1069, "updated_at" = '2012-10-01 15:58:40.947000' WHERE "spree_product_properties"."id" = 1185 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:40.952000', 'Drawings', '2012-10-01 15:58:40.952000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1347 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.956000', NULL, NULL, NULL, NULL, NULL, 11, 'Drawings', NULL, 'drawings', 0, 12, 1347, '2012-10-01 15:58:40.956000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1069 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1069, 2340) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1344 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2335 AND "spree_taxons"."taxonomy_id" = 1344 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:40.969000', NULL, NULL, NULL, NULL, NULL, 13, 'Landscape', 2335, 'paintings/landscape', 0, 14, 1344, '2012-10-01 15:58:40.969000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2341 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2341 THEN 2335 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2335 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2341 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1069, 2341)  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1069, 2335) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1069 AND "spree_option_types"."id" = 642 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1069) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:40.985000', 642, 1, 1069, '2012-10-01 15:58:40.985000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.989000' WHERE "spree_products"."id" = 1069 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.991000' WHERE "spree_products"."id" = 1069  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3832, 1290) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.996000' WHERE "spree_products"."id" = 1069 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:40.998000' WHERE "spree_products"."id" = 1069  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3833, 1291) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 642 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.002000' WHERE "spree_products"."id" = 1069 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003_3', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.004000' WHERE "spree_products"."id" = 1069  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3834, 1292) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:41.009000', 'print_type', 0, 'Print type', '2012-10-01 15:58:41.009000') Spree::OptionType Exists (45.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1069 AND "spree_option_types"."id" = 643 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1069) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:41.064000', 643, 2, 1069, '2012-10-01 15:58:41.064000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 643 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 643) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:41.092000', 'black_white', 643, 1, NULL, '2012-10-01 15:58:41.092000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.099000' WHERE "spree_products"."id" = 1069 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003_4', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.102000' WHERE "spree_products"."id" = 1069  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3835, 1293) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 643 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 643) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:41.107000', 'colour', 643, 2, NULL, '2012-10-01 15:58:41.107000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.116000' WHERE "spree_products"."id" = 1069 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1069, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.118000' WHERE "spree_products"."id" = 1069  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3836, 1294) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3832 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3833 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3834 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3835 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3836 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.145000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3832 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.147000' WHERE "spree_products"."id" = 1069 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.148000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3833 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.150000' WHERE "spree_products"."id" = 1069 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.152000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3834 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.153000' WHERE "spree_products"."id" = 1069 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.155000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3835 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.156000' WHERE "spree_products"."id" = 1069 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.158000' WHERE "spree_products"."id" = 1069  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3836 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:41.160000' WHERE "spree_products"."id" = 1069 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1069) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:41.164000' WHERE "spree_products"."id" = 1069 Row org.apache.poi.hssf.usermodel.HSSFRow@1778e4f succesfully SAVED : ID 1069 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3831) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1069)) Excel Loader processing 70 rows Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_001') LIMIT 1 Spree::Image Load (61.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3823 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3823) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:58:41.302000', 240, 1, 'Spree::Image', 3823, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1067 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:42.091000' WHERE "spree_products"."id" = 1067  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 25 WHERE "spree_products"."id" = 1067 Row org.apache.poi.hssf.usermodel.HSSFRow@131af18 succesfully SAVED : ID 3823 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_002') LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3827 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3827) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:58:42.254000', 2424, 1, 'Spree::Image', 3827, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1068 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:50.497000' WHERE "spree_products"."id" = 1068  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11 WHERE "spree_products"."id" = 1068 Row org.apache.poi.hssf.usermodel.HSSFRow@132e0df succesfully SAVED : ID 3827 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = 'demo_003') LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3831 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3831) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_003_ror_mug.jpeg', 11841, 240, '2012-10-01 15:58:50.516000', 240, 1, 'Spree::Image', 3831, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1069 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.295000' WHERE "spree_products"."id" = 1069  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 53 WHERE "spree_products"."id" = 1069 Row org.apache.poi.hssf.usermodel.HSSFRow@b85467 succesfully SAVED : ID 3831 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE (lower(SKU) = '') LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1067 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3823) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1067)) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1068 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3827) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1068)) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1069 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3831) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1069)) SQL (3.0ms) DELETE FROM "spree_products" SQL (3.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (30.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: #  (0.0ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:58:51.572000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:58:51.572000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.577000' WHERE "spree_products"."id" = 1070 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1070, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.633000' WHERE "spree_products"."id" = 1070  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3837 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.636000' WHERE "spree_products"."id" = 1070  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1070  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.644000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:58:51.644000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:51.646000', NULL, 975, '2012-10-01 15:58:51.646000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1070, "updated_at" = '2012-10-01 15:58:51.647000' WHERE "spree_product_properties"."id" = 1186 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:51.652000', 'Paintings', '2012-10-01 15:58:51.652000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1348 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:51.656000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1348, '2012-10-01 15:58:51.656000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1070 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1070, 2342) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:51.661000', 'WaterColour', '2012-10-01 15:58:51.661000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1349 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:51.664000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1349, '2012-10-01 15:58:51.664000') Product assigned to Taxons : ["WaterColour"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1070, 2343) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.690000', 'mime_type', 0, 'Mime type', '2012-10-01 15:58:51.690000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1070 AND "spree_option_types"."id" = 644 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1070) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:51.696000', 644, 1, 1070, '2012-10-01 15:58:51.696000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 644) ORDER BY position DESC LIMIT 1 SQL (4.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.700000', 'jpeg', 644, 1, NULL, '2012-10-01 15:58:51.700000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.707000' WHERE "spree_products"."id" = 1070 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1070, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.709000' WHERE "spree_products"."id" = 1070  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3838, 1295) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 644) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.742000', 'PDF', 644, 2, NULL, '2012-10-01 15:58:51.742000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.746000' WHERE "spree_products"."id" = 1070 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1070, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.748000' WHERE "spree_products"."id" = 1070  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3839, 1296) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 644) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.765000', 'PNG', 644, 3, NULL, '2012-10-01 15:58:51.765000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.770000' WHERE "spree_products"."id" = 1070 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1070, 'DEMO_001_3', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.772000' WHERE "spree_products"."id" = 1070  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3840, 1297) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3838 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3839 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3840 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.792000' WHERE "spree_products"."id" = 1070  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3838 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.794000' WHERE "spree_products"."id" = 1070 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.795000' WHERE "spree_products"."id" = 1070  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3839 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.797000' WHERE "spree_products"."id" = 1070 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1070 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.799000' WHERE "spree_products"."id" = 1070  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3840 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.800000' WHERE "spree_products"."id" = 1070 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:58:51.804000' WHERE "spree_products"."id" = 1070 Row org.apache.poi.hssf.usermodel.HSSFRow@f2230f succesfully SAVED : ID 1070 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:58:51.820000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:58:51.820000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.823000' WHERE "spree_products"."id" = 1071 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1071, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.825000' WHERE "spree_products"."id" = 1071  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3841 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.828000' WHERE "spree_products"."id" = 1071  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1071  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.844000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:58:51.844000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:51.847000', NULL, 976, '2012-10-01 15:58:51.847000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1071, "updated_at" = '2012-10-01 15:58:51.849000' WHERE "spree_product_properties"."id" = 1187 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1348 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1071 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1071, 2342) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:51.858000', 'Oils', '2012-10-01 15:58:51.858000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1350 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:51.864000', NULL, NULL, NULL, NULL, NULL, 5, 'Oils', NULL, 'oils', 0, 6, 1350, '2012-10-01 15:58:51.864000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1071, 2344) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1348 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2342 AND "spree_taxons"."taxonomy_id" = 1348 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:51.873000', NULL, NULL, NULL, NULL, NULL, 7, 'Nature', 2342, 'paintings/nature', 0, 8, 1348, '2012-10-01 15:58:51.873000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2345 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2345 THEN 2342 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2345 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2345 AND "spree_taxons"."taxonomy_id" = 1348 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2345 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:51.886000', NULL, NULL, NULL, NULL, NULL, 9, 'Seascape', 2345, 'paintings/nature/seascape', 0, 10, 1348, '2012-10-01 15:58:51.886000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2345 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2346 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2346 THEN 2345 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2345 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2346 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1071, 2345)  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1071, 2346) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1071 AND "spree_option_types"."id" = 644 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1071) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:51.902000', 644, 1, 1071, '2012-10-01 15:58:51.902000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.907000' WHERE "spree_products"."id" = 1071 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1071, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.909000' WHERE "spree_products"."id" = 1071  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3842, 1295) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.927000' WHERE "spree_products"."id" = 1071 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1071, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.929000' WHERE "spree_products"."id" = 1071  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3843, 1296) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.934000' WHERE "spree_products"."id" = 1071 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1071, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.936000' WHERE "spree_products"."id" = 1071  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3844, 1297) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3842 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3843 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3844 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.960000' WHERE "spree_products"."id" = 1071  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3842 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.962000' WHERE "spree_products"."id" = 1071 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.963000' WHERE "spree_products"."id" = 1071  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3843 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.965000' WHERE "spree_products"."id" = 1071 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1071 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.967000' WHERE "spree_products"."id" = 1071  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3844 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.968000' WHERE "spree_products"."id" = 1071 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:58:51.973000' WHERE "spree_products"."id" = 1071 Row org.apache.poi.hssf.usermodel.HSSFRow@1d367c8 succesfully SAVED : ID 1071 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:58:51.982000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:58:51.982000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.985000' WHERE "spree_products"."id" = 1072 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.988000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3845 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:51.990000' WHERE "spree_products"."id" = 1072  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1072  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:51.997000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:58:51.997000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:51.999000', NULL, 977, '2012-10-01 15:58:51.999000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1072, "updated_at" = '2012-10-01 15:58:52.001000' WHERE "spree_product_properties"."id" = 1188 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:52.005000', NULL, 976, '2012-10-01 15:58:52.005000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1072, "updated_at" = '2012-10-01 15:58:52.007000' WHERE "spree_product_properties"."id" = 1189 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:58:52.009000', 'yet_another_property', 'Yet another property', '2012-10-01 15:58:52.009000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:58:52.011000', NULL, 978, '2012-10-01 15:58:52.011000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1072, "updated_at" = '2012-10-01 15:58:52.013000' WHERE "spree_product_properties"."id" = 1190 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:58:52.017000', 'Drawings', '2012-10-01 15:58:52.017000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1351 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:52.020000', NULL, NULL, NULL, NULL, NULL, 11, 'Drawings', NULL, 'drawings', 0, 12, 1351, '2012-10-01 15:58:52.020000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1072 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1072, 2347) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1348 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2342 AND "spree_taxons"."taxonomy_id" = 1348 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:58:52.031000', NULL, NULL, NULL, NULL, NULL, 13, 'Landscape', 2342, 'paintings/landscape', 0, 14, 1348, '2012-10-01 15:58:52.031000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2348 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2348 THEN 2342 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2342 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2348 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1072, 2348)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1072, 2342) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1072 AND "spree_option_types"."id" = 644 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1072) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:52.046000', 644, 1, 1072, '2012-10-01 15:58:52.046000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.050000' WHERE "spree_products"."id" = 1072 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.053000' WHERE "spree_products"."id" = 1072  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3846, 1295) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.057000' WHERE "spree_products"."id" = 1072 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.059000' WHERE "spree_products"."id" = 1072  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3847, 1296) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 644 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.065000' WHERE "spree_products"."id" = 1072 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.067000' WHERE "spree_products"."id" = 1072  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3848, 1297) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:52.071000', 'print_type', 0, 'Print type', '2012-10-01 15:58:52.071000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1072 AND "spree_option_types"."id" = 645 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1072) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:58:52.080000', 645, 2, 1072, '2012-10-01 15:58:52.080000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 645 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 645) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:52.085000', 'black_white', 645, 1, NULL, '2012-10-01 15:58:52.085000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.091000' WHERE "spree_products"."id" = 1072 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.128000' WHERE "spree_products"."id" = 1072  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3849, 1298) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 645 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 645) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:58:52.132000', 'colour', 645, 2, NULL, '2012-10-01 15:58:52.132000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.138000' WHERE "spree_products"."id" = 1072 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1072, 'DEMO_003_5', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.140000' WHERE "spree_products"."id" = 1072  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3850, 1299) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3846 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3847 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3848 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3849 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3850 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.168000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3846 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.170000' WHERE "spree_products"."id" = 1072 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.172000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3847 SQL (2.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.173000' WHERE "spree_products"."id" = 1072 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.176000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3848 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.177000' WHERE "spree_products"."id" = 1072 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.179000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3849 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.181000' WHERE "spree_products"."id" = 1072 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1072 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.184000' WHERE "spree_products"."id" = 1072  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3850 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:58:52.186000' WHERE "spree_products"."id" = 1072 Spree::Product Exists (2.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:58:52.192000' WHERE "spree_products"."id" = 1072 Row org.apache.poi.hssf.usermodel.HSSFRow@581b27 succesfully SAVED : ID 1072 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1  (2.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3845) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1072)) Excel Loader processing 70 rows Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo product for ar loader') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3837) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1070)) ORDER BY "spree_assets".position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1070) ORDER BY position DESC LIMIT 1 SQL (3.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:58:52.378000', 240, 1, 'Spree::Image', 1070, 'Spree::Product') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3837) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1070)) ORDER BY "spree_assets".position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1070) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:58:53.322000', 2424, 2, 'Spree::Image', 1070, 'Spree::Product') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1070) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row org.apache.poi.hssf.usermodel.HSSFRow@1944165 succesfully SAVED : ID 1070 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo excel load via jruby') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3841) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1071)) ORDER BY "spree_assets".position Spree::Asset Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1071) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:59:00.768000', 2424, 1, 'Spree::Image', 1071, 'Spree::Product') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1071) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row org.apache.poi.hssf.usermodel.HSSFRow@18c760c succesfully SAVED : ID 1071 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = 'demo third row in future') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1 Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3845) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1072)) ORDER BY "spree_assets".position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 1072) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_003_ror_mug.jpeg', 11841, 240, '2012-10-01 15:59:07.777000', 240, 1, 'Spree::Image', 1072, 'Spree::Product') Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1072) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Row org.apache.poi.hssf.usermodel.HSSFRow@13e97d3 succesfully SAVED : ID 1072 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (lower(Name) = '') LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1070 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3837) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1070)) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Excel Load via Jruby' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1071 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3841) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1071)) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1072 AND ("spree_variants".is_master = 't') LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 3845) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1072)) SQL (77.0ms) DELETE FROM "spree_products" SQL (3.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (4.0ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # Excel Loader processing 69 rows Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (37.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:08.917000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:08.917000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.000000' WHERE "spree_products"."id" = 1073 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1073, 'MULTI_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.003000' WHERE "spree_products"."id" = 1073  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3851 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.010000' WHERE "spree_products"."id" = 1073  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1073  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:09.019000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:59:09.019000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:09.021000', NULL, 979, '2012-10-01 15:59:09.021000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1073, "updated_at" = '2012-10-01 15:59:09.024000' WHERE "spree_product_properties"."id" = 1191 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:09.031000', 'Paintings', '2012-10-01 15:59:09.031000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1352 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:09.036000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1352, '2012-10-01 15:59:09.036000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1073 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1073, 2349) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:09.044000', 'WaterColour', '2012-10-01 15:59:09.044000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1353 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:09.048000', NULL, NULL, NULL, NULL, NULL, 3, 'WaterColour', NULL, 'watercolour', 0, 4, 1353, '2012-10-01 15:59:09.048000') Product assigned to Taxons : ["WaterColour"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1073, 2350) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:09.055000', 'mime_type', 0, 'Mime type', '2012-10-01 15:59:09.055000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1073 AND "spree_option_types"."id" = 646 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1073) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:09.062000', 646, 1, 1073, '2012-10-01 15:59:09.062000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 646) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:09.065000', 'jpeg', 646, 1, NULL, '2012-10-01 15:59:09.065000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.070000' WHERE "spree_products"."id" = 1073 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1073, 'MULTI_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.073000' WHERE "spree_products"."id" = 1073  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3852, 1300) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 646) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:09.106000', 'PDF', 646, 2, NULL, '2012-10-01 15:59:09.106000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.110000' WHERE "spree_products"."id" = 1073 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1073, 'MULTI_001_2', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.112000' WHERE "spree_products"."id" = 1073  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3853, 1301) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 646) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:09.116000', 'PNG', 646, 3, NULL, '2012-10-01 15:59:09.116000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.120000' WHERE "spree_products"."id" = 1073 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1073, 'MULTI_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.123000' WHERE "spree_products"."id" = 1073  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3854, 1302) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3852 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3853 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3854 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.150000' WHERE "spree_products"."id" = 1073  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3852 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.152000' WHERE "spree_products"."id" = 1073 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.153000' WHERE "spree_products"."id" = 1073  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3853 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.155000' WHERE "spree_products"."id" = 1073 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1073 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.156000' WHERE "spree_products"."id" = 1073  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3854 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:09.158000' WHERE "spree_products"."id" = 1073 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3851 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3851) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:59:09.167000', 240, 1, 'Spree::Image', 3851, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1 Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3851) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:59:10.034000', 240, 2, 'Spree::Image', 3851, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1 Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3851) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_003_ror_mug.jpeg', 11841, 240, '2012-10-01 15:59:10.740000', 240, 3, 'Spree::Image', 3851, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1073) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:59:11.416000' WHERE "spree_products"."id" = 1073 Row org.apache.poi.hssf.usermodel.HSSFRow@d3c7c2 succesfully SAVED : ID 1073 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:11.425000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:59:11.425000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.429000' WHERE "spree_products"."id" = 1074 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1074, 'MULTI_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.460000' WHERE "spree_products"."id" = 1074  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3855 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.462000' WHERE "spree_products"."id" = 1074  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1074  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:11.470000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:59:11.470000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:11.472000', NULL, 980, '2012-10-01 15:59:11.472000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1074, "updated_at" = '2012-10-01 15:59:11.474000' WHERE "spree_product_properties"."id" = 1192 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1352 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1074 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1074, 2349) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:11.482000', 'Landscape', '2012-10-01 15:59:11.482000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1354 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:11.488000', NULL, NULL, NULL, NULL, NULL, 5, 'Landscape', NULL, 'landscape', 0, 6, 1354, '2012-10-01 15:59:11.488000') Product assigned to Taxons : ["Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1074, 2351) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:11.492000', 'Oils', '2012-10-01 15:59:11.492000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1355 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:11.495000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1355, '2012-10-01 15:59:11.495000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1074, 2352) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1074 AND "spree_option_types"."id" = 646 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1074) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:11.508000', 646, 1, 1074, '2012-10-01 15:59:11.508000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.513000' WHERE "spree_products"."id" = 1074 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1074, 'MULTI_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.515000' WHERE "spree_products"."id" = 1074  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3856, 1300) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.519000' WHERE "spree_products"."id" = 1074 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1074, 'MULTI_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.521000' WHERE "spree_products"."id" = 1074  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3857, 1301) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 646 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.524000' WHERE "spree_products"."id" = 1074 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1074, 'MULTI_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.526000' WHERE "spree_products"."id" = 1074  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3858, 1302) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3856 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3857 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3858 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.542000' WHERE "spree_products"."id" = 1074  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3856 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.543000' WHERE "spree_products"."id" = 1074 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.545000' WHERE "spree_products"."id" = 1074  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3857 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.546000' WHERE "spree_products"."id" = 1074 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1074 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.548000' WHERE "spree_products"."id" = 1074  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3858 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:11.549000' WHERE "spree_products"."id" = 1074 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3855 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3855) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_002_Powerstation.jpg', 3702557, 1584, '2012-10-01 15:59:11.612000', 2424, 1, 'Spree::Image', 3855, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" = 3855) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (NULL, 'image/jpeg', 'DEMO_001_ror_bag.jpeg', 16307, 240, '2012-10-01 15:59:18.103000', 240, 2, 'Spree::Image', 3855, 'Spree::Variant') Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1074) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1074 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:59:18.781000' WHERE "spree_products"."id" = 1074 Row org.apache.poi.hssf.usermodel.HSSFRow@36a561 succesfully SAVED : ID 1074 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1073 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Image Load (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 3851 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Booted Spree using version 1.1.3 SQL (9.0ms) DELETE FROM "spree_products" SQL (2.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:19.018000', 'Paintings', '2012-10-01 15:59:19.018000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1356 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.024000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1356, '2012-10-01 15:59:19.024000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.032000', 'Nice paintings', NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1356, '2012-10-01 15:59:19.032000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.037000', 'Waves and sand', NULL, NULL, NULL, NULL, 5, 'Sea', NULL, 'sea', 0, 6, 1356, '2012-10-01 15:59:19.037000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (45.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.0ms) DELETE FROM "spree_zones" SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:19.126000', 'Paintings', '2012-10-01 15:59:19.126000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1357 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.132000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1357, '2012-10-01 15:59:19.132000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.142000', 'Nice paintings', NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1357, '2012-10-01 15:59:19.142000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.149000', 'Waves and sand', NULL, NULL, NULL, NULL, 5, 'Sea', NULL, 'sea', 0, 6, 1357, '2012-10-01 15:59:19.149000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons"  Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 1357 LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 1357 LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 1357 LIMIT 1 Booted Spree using version 1.1.3 SQL (60.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (13.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:19.887000', 'Paintings', '2012-10-01 15:59:19.887000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.893000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1358, '2012-10-01 15:59:19.893000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:19.900000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1358, '2012-10-01 15:59:19.900000')  (1.0ms) UPDATE "spree_taxons" SET "parent_id" = 2359, "updated_at" = '2012-10-01 15:59:19.915000' WHERE "spree_taxons"."id" = 2360 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2360 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2360 THEN 2359 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2360 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2359 ORDER BY "lft" Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:19.956000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:19.956000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:19.961000' WHERE "spree_products"."id" = 1075 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1075, 'DEMO_001', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:19.989000' WHERE "spree_products"."id" = 1075  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3859 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:19.994000' WHERE "spree_products"."id" = 1075  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1075  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.002000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:59:20.002000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.004000', NULL, 981, '2012-10-01 15:59:20.004000', NULL)  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1075, "updated_at" = '2012-10-01 15:59:20.009000' WHERE "spree_product_properties"."id" = 1193 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1075 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1075, 2359) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:20.028000', 'WaterColour', '2012-10-01 15:59:20.028000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1359 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.053000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1359, '2012-10-01 15:59:20.053000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1075, 2361) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.063000', 'mime_type', 0, 'Mime type', '2012-10-01 15:59:20.063000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1075 AND "spree_option_types"."id" = 647 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1075) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:20.073000', 647, 1, 1075, '2012-10-01 15:59:20.073000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 647) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.078000', 'jpeg', 647, 1, NULL, '2012-10-01 15:59:20.078000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.083000' WHERE "spree_products"."id" = 1075 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1075, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.113000' WHERE "spree_products"."id" = 1075  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3860, 1303) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 647) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.119000', 'PDF', 647, 2, NULL, '2012-10-01 15:59:20.119000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.124000' WHERE "spree_products"."id" = 1075 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1075, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.127000' WHERE "spree_products"."id" = 1075  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3861, 1304) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 647) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.131000', 'PNG', 647, 3, NULL, '2012-10-01 15:59:20.131000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.135000' WHERE "spree_products"."id" = 1075 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1075, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.138000' WHERE "spree_products"."id" = 1075  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3862, 1305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3860 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3861 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3862 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.160000' WHERE "spree_products"."id" = 1075  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3860 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.162000' WHERE "spree_products"."id" = 1075 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.164000' WHERE "spree_products"."id" = 1075  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3861 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.165000' WHERE "spree_products"."id" = 1075 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.167000' WHERE "spree_products"."id" = 1075  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3862 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.168000' WHERE "spree_products"."id" = 1075 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1075) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1075 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:59:20.172000' WHERE "spree_products"."id" = 1075 Row org.apache.poi.hssf.usermodel.HSSFRow@fbd19d succesfully SAVED : ID 1075 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (4.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:20.184000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:59:20.184000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (2.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.188000' WHERE "spree_products"."id" = 1076 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1076, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.191000' WHERE "spree_products"."id" = 1076  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3863 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.195000' WHERE "spree_products"."id" = 1076  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1076  (11.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.213000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:59:20.213000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.217000', NULL, 982, '2012-10-01 15:59:20.217000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1076, "updated_at" = '2012-10-01 15:59:20.218000' WHERE "spree_product_properties"."id" = 1194 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1076 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1076, 2359) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:20.229000', 'Oils', '2012-10-01 15:59:20.229000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1360 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.233000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1360, '2012-10-01 15:59:20.233000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1076, 2362) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2359 AND "spree_taxons"."taxonomy_id" = 1358 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.242000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2359, 'paintings/nature', 0, 10, 1358, '2012-10-01 15:59:20.242000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2363 THEN 2359 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2363 AND "spree_taxons"."taxonomy_id" = 1358 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.253000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2363, 'paintings/nature/seascape', 0, 12, 1358, '2012-10-01 15:59:20.253000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2364 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2364 THEN 2363 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2364 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1076, 2363)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1076, 2364) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1076 AND "spree_option_types"."id" = 647 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1076) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:20.269000', 647, 1, 1076, '2012-10-01 15:59:20.269000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.274000' WHERE "spree_products"."id" = 1076 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1076, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.277000' WHERE "spree_products"."id" = 1076  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3864, 1303) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.283000' WHERE "spree_products"."id" = 1076 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1076, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.285000' WHERE "spree_products"."id" = 1076  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3865, 1304) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.290000' WHERE "spree_products"."id" = 1076 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1076, 'DEMO_002_3', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.292000' WHERE "spree_products"."id" = 1076  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3866, 1305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3864 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3865 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3866 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.317000' WHERE "spree_products"."id" = 1076  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3864 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.319000' WHERE "spree_products"."id" = 1076 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.321000' WHERE "spree_products"."id" = 1076  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3865 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.322000' WHERE "spree_products"."id" = 1076 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.324000' WHERE "spree_products"."id" = 1076  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3866 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.325000' WHERE "spree_products"."id" = 1076 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1076) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1076 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:59:20.329000' WHERE "spree_products"."id" = 1076 Row org.apache.poi.hssf.usermodel.HSSFRow@1ae80c1 succesfully SAVED : ID 1076 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:20.338000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:59:20.338000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.342000' WHERE "spree_products"."id" = 1077 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.344000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3867 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.346000' WHERE "spree_products"."id" = 1077  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1077  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.354000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:59:20.354000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.360000', NULL, 983, '2012-10-01 15:59:20.360000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1077, "updated_at" = '2012-10-01 15:59:20.366000' WHERE "spree_product_properties"."id" = 1195 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.369000', NULL, 982, '2012-10-01 15:59:20.369000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1077, "updated_at" = '2012-10-01 15:59:20.372000' WHERE "spree_product_properties"."id" = 1196 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.386000', 'yet_another_property', 'Yet another property', '2012-10-01 15:59:20.386000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.389000', NULL, 984, '2012-10-01 15:59:20.389000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1077, "updated_at" = '2012-10-01 15:59:20.391000' WHERE "spree_product_properties"."id" = 1197 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:20.396000', 'Drawings', '2012-10-01 15:59:20.396000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1361 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.401000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1361, '2012-10-01 15:59:20.401000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1077 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1077, 2365) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2359 AND "spree_taxons"."taxonomy_id" = 1358 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1077, 2360)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1077, 2359) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1077 AND "spree_option_types"."id" = 647 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1077) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:20.420000', 647, 1, 1077, '2012-10-01 15:59:20.420000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.425000' WHERE "spree_products"."id" = 1077 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.428000' WHERE "spree_products"."id" = 1077  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3868, 1303) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.435000' WHERE "spree_products"."id" = 1077 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.437000' WHERE "spree_products"."id" = 1077  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3869, 1304) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 647 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.444000' WHERE "spree_products"."id" = 1077 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.446000' WHERE "spree_products"."id" = 1077  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3870, 1305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.451000', 'print_type', 0, 'Print type', '2012-10-01 15:59:20.451000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1077 AND "spree_option_types"."id" = 648 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1077) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:20.458000', 648, 2, 1077, '2012-10-01 15:59:20.458000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 648 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 648) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.461000', 'black_white', 648, 1, NULL, '2012-10-01 15:59:20.461000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.469000' WHERE "spree_products"."id" = 1077 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.499000' WHERE "spree_products"."id" = 1077  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3871, 1306) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 648 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 648) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.503000', 'colour', 648, 2, NULL, '2012-10-01 15:59:20.503000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.508000' WHERE "spree_products"."id" = 1077 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1077, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.511000' WHERE "spree_products"."id" = 1077  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3872, 1307) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3868 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3869 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3870 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3871 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3872 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.550000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3868 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.552000' WHERE "spree_products"."id" = 1077 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.554000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3869 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.555000' WHERE "spree_products"."id" = 1077 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.558000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3870 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.560000' WHERE "spree_products"."id" = 1077 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.562000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3871 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.564000' WHERE "spree_products"."id" = 1077 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1077 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.567000' WHERE "spree_products"."id" = 1077  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3872 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.569000' WHERE "spree_products"."id" = 1077 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1077) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1077 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:59:20.573000' WHERE "spree_products"."id" = 1077 Row org.apache.poi.hssf.usermodel.HSSFRow@da0bed succesfully SAVED : ID 1077 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  (1.0ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1075 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1075 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1076 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1076 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2359 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1358 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2363 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2363 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2364 ORDER BY "lft" SQL (3.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (28.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (1.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products" PRODUCT # MASTER: # SQL (2.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:20.745000', 'Paintings', '2012-10-01 15:59:20.745000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.751000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1362, '2012-10-01 15:59:20.751000')  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.760000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1362, '2012-10-01 15:59:20.760000')  (1.0ms) UPDATE "spree_taxons" SET "parent_id" = 2366, "updated_at" = '2012-10-01 15:59:20.765000' WHERE "spree_taxons"."id" = 2367 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2367 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2367 THEN 2366 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2367 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2366 ORDER BY "lft" Excel Loader processing 70 rows Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:20.849000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:20.849000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.853000' WHERE "spree_products"."id" = 1078 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1078, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.856000' WHERE "spree_products"."id" = 1078  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3873 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.859000' WHERE "spree_products"."id" = 1078  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1078  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.868000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:59:20.868000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:20.871000', NULL, 985, '2012-10-01 15:59:20.871000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1078, "updated_at" = '2012-10-01 15:59:20.874000' WHERE "spree_product_properties"."id" = 1198 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1078 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1078, 2366) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:20.886000', 'WaterColour', '2012-10-01 15:59:20.886000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1363 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:20.890000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1363, '2012-10-01 15:59:20.890000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1078, 2368) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.902000', 'mime_type', 0, 'Mime type', '2012-10-01 15:59:20.902000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1078 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1078) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:20.908000', 649, 1, 1078, '2012-10-01 15:59:20.908000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 649 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 649) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.912000', 'jpeg', 649, 1, NULL, '2012-10-01 15:59:20.912000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.916000' WHERE "spree_products"."id" = 1078 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1078, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.919000' WHERE "spree_products"."id" = 1078  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3874, 1308) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1078 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 649 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 649) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.956000', 'PDF', 649, 2, NULL, '2012-10-01 15:59:20.956000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.960000' WHERE "spree_products"."id" = 1078 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1078, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.962000' WHERE "spree_products"."id" = 1078  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3875, 1309) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1078 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 649 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 649) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:20.974000', 'PNG', 649, 3, NULL, '2012-10-01 15:59:20.974000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.979000' WHERE "spree_products"."id" = 1078 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1078, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:20.981000' WHERE "spree_products"."id" = 1078  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3876, 1310) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3874 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3875 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3876 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.004000' WHERE "spree_products"."id" = 1078  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3874 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.005000' WHERE "spree_products"."id" = 1078 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.007000' WHERE "spree_products"."id" = 1078  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3875 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.009000' WHERE "spree_products"."id" = 1078 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.011000' WHERE "spree_products"."id" = 1078  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3876 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.013000' WHERE "spree_products"."id" = 1078 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1078) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1078 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:59:21.016000' WHERE "spree_products"."id" = 1078 Row org.apache.poi.hssf.usermodel.HSSFRow@55f58b succesfully SAVED : ID 1078 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:21.029000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:59:21.029000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.033000' WHERE "spree_products"."id" = 1079 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1079, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.036000' WHERE "spree_products"."id" = 1079  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3877 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.039000' WHERE "spree_products"."id" = 1079  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1079  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.046000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:59:21.046000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:21.084000', NULL, 986, '2012-10-01 15:59:21.084000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1079, "updated_at" = '2012-10-01 15:59:21.085000' WHERE "spree_product_properties"."id" = 1199 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1079 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1079, 2366) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:21.099000', 'Oils', '2012-10-01 15:59:21.099000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1364 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.103000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1364, '2012-10-01 15:59:21.103000') Product assigned to Taxons : ["Oils"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1079, 2369) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2366 AND "spree_taxons"."taxonomy_id" = 1362 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.118000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2366, 'paintings/nature', 0, 10, 1362, '2012-10-01 15:59:21.118000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2370 THEN 2366 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2370 AND "spree_taxons"."taxonomy_id" = 1362 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.128000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2370, 'paintings/nature/seascape', 0, 12, 1362, '2012-10-01 15:59:21.128000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2371 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2371 THEN 2370 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2371 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1079, 2370)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1079, 2371) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1079 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1079) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:21.145000', 649, 1, 1079, '2012-10-01 15:59:21.145000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 649 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.152000' WHERE "spree_products"."id" = 1079 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1079, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.154000' WHERE "spree_products"."id" = 1079  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3878, 1308) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1079 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 649 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.166000' WHERE "spree_products"."id" = 1079 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1079, 'DEMO_002_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.168000' WHERE "spree_products"."id" = 1079  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3879, 1309) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1079 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 649 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.180000' WHERE "spree_products"."id" = 1079 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1079, 'DEMO_002_3', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.183000' WHERE "spree_products"."id" = 1079  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3880, 1310) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3878 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3879 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3880 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.204000' WHERE "spree_products"."id" = 1079  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3878 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.206000' WHERE "spree_products"."id" = 1079 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.208000' WHERE "spree_products"."id" = 1079  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3879 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.210000' WHERE "spree_products"."id" = 1079 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.212000' WHERE "spree_products"."id" = 1079  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3880 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.213000' WHERE "spree_products"."id" = 1079 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1079) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1079 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:59:21.217000' WHERE "spree_products"."id" = 1079 Row org.apache.poi.hssf.usermodel.HSSFRow@18520d succesfully SAVED : ID 1079 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:21.229000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:59:21.229000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.234000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.236000' WHERE "spree_products"."id" = 1080  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3881 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.244000' WHERE "spree_products"."id" = 1080  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1080  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.251000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:59:21.251000') Created New Property # SQL (1.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:21.254000', NULL, 987, '2012-10-01 15:59:21.254000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1080, "updated_at" = '2012-10-01 15:59:21.256000' WHERE "spree_product_properties"."id" = 1200 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:21.260000', NULL, 986, '2012-10-01 15:59:21.260000', 'Example free value')  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1080, "updated_at" = '2012-10-01 15:59:21.262000' WHERE "spree_product_properties"."id" = 1201 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.266000', 'yet_another_property', 'Yet another property', '2012-10-01 15:59:21.266000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:21.268000', NULL, 988, '2012-10-01 15:59:21.268000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1080, "updated_at" = '2012-10-01 15:59:21.271000' WHERE "spree_product_properties"."id" = 1202 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:21.275000', 'Drawings', '2012-10-01 15:59:21.275000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1365 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.280000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1365, '2012-10-01 15:59:21.280000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1080 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1080, 2372) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2366 AND "spree_taxons"."taxonomy_id" = 1362 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1080, 2367)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1080, 2366) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1080 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1080) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:21.300000', 649, 1, 1080, '2012-10-01 15:59:21.300000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 649 LIMIT 1 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.305000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.307000' WHERE "spree_products"."id" = 1080  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3882, 1308) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1080 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 649 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.320000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.322000' WHERE "spree_products"."id" = 1080  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3883, 1309) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1080 AND "spree_option_types"."id" = 649 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 649 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.334000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.336000' WHERE "spree_products"."id" = 1080  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3884, 1310) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.343000', 'print_type', 0, 'Print type', '2012-10-01 15:59:21.343000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1080 AND "spree_option_types"."id" = 650 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1080) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:21.353000', 650, 2, 1080, '2012-10-01 15:59:21.353000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 650 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 650) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.358000', 'black_white', 650, 1, NULL, '2012-10-01 15:59:21.358000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.362000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003_4', NULL, NULL) SQL (29.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.364000' WHERE "spree_products"."id" = 1080  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3885, 1311) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1080 AND "spree_option_types"."id" = 650 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 650 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 650) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.403000', 'colour', 650, 2, NULL, '2012-10-01 15:59:21.403000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.409000' WHERE "spree_products"."id" = 1080 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1080, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.411000' WHERE "spree_products"."id" = 1080  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3886, 1312) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3882 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3883 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3884 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3885 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3886 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.454000' WHERE "spree_products"."id" = 1080  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3882 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.456000' WHERE "spree_products"."id" = 1080 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.458000' WHERE "spree_products"."id" = 1080  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3883 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.460000' WHERE "spree_products"."id" = 1080 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.462000' WHERE "spree_products"."id" = 1080  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3884 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.463000' WHERE "spree_products"."id" = 1080 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.465000' WHERE "spree_products"."id" = 1080  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3885 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.467000' WHERE "spree_products"."id" = 1080 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1080 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.470000' WHERE "spree_products"."id" = 1080  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3886 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.471000' WHERE "spree_products"."id" = 1080 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1080) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1080 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:59:21.475000' WHERE "spree_products"."id" = 1080 Row org.apache.poi.hssf.usermodel.HSSFRow@163260a succesfully SAVED : ID 1080 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) SELECT COUNT(*) FROM "spree_products" Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1078 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1078 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1079 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1079 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2366 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1362 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2370 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2370 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2371 ORDER BY "lft" SQL (7.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (4.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (32.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:21.682000', 'Paintings', '2012-10-01 15:59:21.682000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.688000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1366, '2012-10-01 15:59:21.688000')  (2.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.699000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', NULL, 'landscape', 0, 4, 1366, '2012-10-01 15:59:21.699000')  (1.0ms) UPDATE "spree_taxons" SET "parent_id" = 2373, "updated_at" = '2012-10-01 15:59:21.705000' WHERE "spree_taxons"."id" = 2374 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2374 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2374 THEN 2373 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2374 LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2373 ORDER BY "lft" Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:21.733000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:21.733000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.737000' WHERE "spree_products"."id" = 1081 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1081, 'DEMO_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.740000' WHERE "spree_products"."id" = 1081  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3887 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.742000' WHERE "spree_products"."id" = 1081  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1081  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.777000', 'test_pp_001', 'Test pp 001', '2012-10-01 15:59:21.777000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:21.780000', NULL, 989, '2012-10-01 15:59:21.780000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1081, "updated_at" = '2012-10-01 15:59:21.782000' WHERE "spree_product_properties"."id" = 1203 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1081 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1081, 2373) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:21.802000', 'WaterColour', '2012-10-01 15:59:21.802000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1367 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:21.809000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1367, '2012-10-01 15:59:21.809000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1081, 2375) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.838000', 'mime_type', 0, 'Mime type', '2012-10-01 15:59:21.838000') Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1081 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1081) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:21.844000', 651, 1, 1081, '2012-10-01 15:59:21.844000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 651 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 651) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.853000', 'jpeg', 651, 1, NULL, '2012-10-01 15:59:21.853000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.888000' WHERE "spree_products"."id" = 1081 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1081, 'DEMO_001_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.891000' WHERE "spree_products"."id" = 1081  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3888, 1313) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1081 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 651 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 651) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.902000', 'PDF', 651, 2, NULL, '2012-10-01 15:59:21.902000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.911000' WHERE "spree_products"."id" = 1081 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1081, 'DEMO_001_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.913000' WHERE "spree_products"."id" = 1081  (1.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3889, 1314) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1081 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 651 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 651) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:21.927000', 'PNG', 651, 3, NULL, '2012-10-01 15:59:21.927000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.932000' WHERE "spree_products"."id" = 1081 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1081, 'DEMO_001_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.933000' WHERE "spree_products"."id" = 1081  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3890, 1315) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 Current value to assign : Current value to assign : Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3888 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3889 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3890 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.965000' WHERE "spree_products"."id" = 1081  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3888 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.967000' WHERE "spree_products"."id" = 1081 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.969000' WHERE "spree_products"."id" = 1081  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 3889 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.970000' WHERE "spree_products"."id" = 1081 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.972000' WHERE "spree_products"."id" = 1081  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3890 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.973000' WHERE "spree_products"."id" = 1081 Saving csv row DEMO_001Demo Product for AR Loaderblah blah2011-02-14399.99320.00test_pp_001PaintingsWaterColourmime_type:jpegmime_type:PDFmime_type:PNG12|6|7 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1081) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1081 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-01 15:59:21.977000' WHERE "spree_products"."id" = 1081 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:21.988000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load via Jruby', 'demo-excel-load-via-jruby', NULL, NULL, '2012-10-01 15:59:21.988000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.993000' WHERE "spree_products"."id" = 1082 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1082, 'DEMO_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.995000' WHERE "spree_products"."id" = 1082  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3891 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:21.997000' WHERE "spree_products"."id" = 1082  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1082  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.004000', 'test_pp_003', 'Test pp 003', '2012-10-01 15:59:22.004000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:22.006000', NULL, 990, '2012-10-01 15:59:22.006000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1082, "updated_at" = '2012-10-01 15:59:22.007000' WHERE "spree_product_properties"."id" = 1204 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1082 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1082, 2373) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.034000', 'Oils', '2012-10-01 15:59:22.034000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1368 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.038000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1368, '2012-10-01 15:59:22.038000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1082, 2376) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2373 AND "spree_taxons"."taxonomy_id" = 1366 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.052000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2373, 'paintings/nature', 0, 10, 1366, '2012-10-01 15:59:22.052000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2377 THEN 2373 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2377 AND "spree_taxons"."taxonomy_id" = 1366 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.064000', NULL, NULL, NULL, NULL, NULL, 11, 'Seascape', 2377, 'paintings/nature/seascape', 0, 12, 1366, '2012-10-01 15:59:22.064000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2378 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2378 THEN 2377 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2378 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1082, 2377)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1082, 2378) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1082 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1082) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:22.081000', 651, 1, 1082, '2012-10-01 15:59:22.081000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 651 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.086000' WHERE "spree_products"."id" = 1082 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1082, 'DEMO_002_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.088000' WHERE "spree_products"."id" = 1082  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3892, 1313) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1082 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 651 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.102000' WHERE "spree_products"."id" = 1082 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1082, 'DEMO_002_2', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.104000' WHERE "spree_products"."id" = 1082  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3893, 1314) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1082 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 651 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.157000' WHERE "spree_products"."id" = 1082 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1082, 'DEMO_002_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.159000' WHERE "spree_products"."id" = 1082  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3894, 1315) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 Current value to assign : Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3892 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3893 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3894 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.194000' WHERE "spree_products"."id" = 1082  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3892 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.196000' WHERE "spree_products"."id" = 1082 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.197000' WHERE "spree_products"."id" = 1082  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3893 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.199000' WHERE "spree_products"."id" = 1082 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.200000' WHERE "spree_products"."id" = 1082  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3894 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.202000' WHERE "spree_products"."id" = 1082 Saving csv row DEMO_002Demo Excel Load via Jrubyless blah2011-05-14100.0030.00test_pp_003PaintingsOilsPaintings>Nature>Seascapemime_type:jpegmime_type:PDFmime_type:PNG5|4|2 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1082) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1082 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-01 15:59:22.205000' WHERE "spree_products"."id" = 1082 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:22.213000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:59:22.213000') Spree::Product Load (2.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.218000' WHERE "spree_products"."id" = 1083 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.219000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3895 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.222000' WHERE "spree_products"."id" = 1083  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1083  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.229000', 'test_pp_002', 'Test pp 002', '2012-10-01 15:59:22.229000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:22.231000', NULL, 991, '2012-10-01 15:59:22.231000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1083, "updated_at" = '2012-10-01 15:59:22.233000' WHERE "spree_product_properties"."id" = 1205 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:22.238000', NULL, 990, '2012-10-01 15:59:22.238000', 'Example free value')  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1083, "updated_at" = '2012-10-01 15:59:22.240000' WHERE "spree_product_properties"."id" = 1206 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.252000', 'yet_another_property', 'Yet another property', '2012-10-01 15:59:22.252000') Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES ('2012-10-01 15:59:22.255000', NULL, 992, '2012-10-01 15:59:22.255000', NULL)  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1083, "updated_at" = '2012-10-01 15:59:22.257000' WHERE "spree_product_properties"."id" = 1207 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.260000', 'Drawings', '2012-10-01 15:59:22.260000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1369 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.264000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1369, '2012-10-01 15:59:22.264000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1083 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1083, 2379) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2373 AND "spree_taxons"."taxonomy_id" = 1366 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1083, 2374)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1083, 2373) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1083 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1083) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:22.288000', 651, 1, 1083, '2012-10-01 15:59:22.288000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 651 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.293000' WHERE "spree_products"."id" = 1083 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003_1', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.295000' WHERE "spree_products"."id" = 1083  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3896, 1313) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1083 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 651 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.306000' WHERE "spree_products"."id" = 1083 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003_2', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.309000' WHERE "spree_products"."id" = 1083  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3897, 1314) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1083 AND "spree_option_types"."id" = 651 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 651 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.322000' WHERE "spree_products"."id" = 1083 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003_3', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.329000' WHERE "spree_products"."id" = 1083  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3898, 1315) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.335000', 'print_type', 0, 'Print type', '2012-10-01 15:59:22.335000') Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1083 AND "spree_option_types"."id" = 652 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1083) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES ('2012-10-01 15:59:22.342000', 652, 2, 1083, '2012-10-01 15:59:22.342000') Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 652 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 652) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.345000', 'black_white', 652, 1, NULL, '2012-10-01 15:59:22.345000')  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.349000' WHERE "spree_products"."id" = 1083 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003_4', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.352000' WHERE "spree_products"."id" = 1083  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3899, 1316) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1083 AND "spree_option_types"."id" = 652 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 652 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 652) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES ('2012-10-01 15:59:22.386000', 'colour', 652, 2, NULL, '2012-10-01 15:59:22.386000')  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.392000' WHERE "spree_products"."id" = 1083 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (NULL, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1083, 'DEMO_003_5', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.395000' WHERE "spree_products"."id" = 1083  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (3900, 1317) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3896 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3897 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3898 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3899 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3900 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1  (1.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.422000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3896 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.430000' WHERE "spree_products"."id" = 1083 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.436000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 3897 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.437000' WHERE "spree_products"."id" = 1083 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.440000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3898 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.441000' WHERE "spree_products"."id" = 1083 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.443000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 3899 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.445000' WHERE "spree_products"."id" = 1083 Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1083 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.448000' WHERE "spree_products"."id" = 1083  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 3900 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.450000' WHERE "spree_products"."id" = 1083 Saving csv row DEMO_003Demo third row in futuremore blah blah2012-07-0150.3423.34test_pp_002test_pp_003:Example free valueyet_another_propertyDrawingsPaintings>Landscapemime_type:jpegmime_type:PDFmime_type:PNGprint_type:black_whiteprint_type:colour12|4|7|12|18 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1083) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1083 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-01 15:59:22.454000' WHERE "spree_products"."id" = 1083 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) SELECT COUNT(*) FROM "spree_products" Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1081 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1081 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1082 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1082 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2373 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1366 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2377 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2377 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2378 ORDER BY "lft" SQL (5.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (28.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_taxons"  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  Excel Loader processing 70 rows Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:22.572000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:22.572000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1084 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.575000' WHERE "spree_products"."id" = 1084 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1084, 'test_ct_001', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.601000' WHERE "spree_products"."id" = 1084  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3901 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.604000' WHERE "spree_products"."id" = 1084  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1084 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1084 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1084  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1084 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.610000', 'Paintings', '2012-10-01 15:59:22.610000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.615000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1370, '2012-10-01 15:59:22.615000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2380 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 LIMIT 1 SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.622000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', 2380, 'paintings/landscape', 0, 4, 1370, '2012-10-01 15:59:22.622000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2381 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2381 THEN 2380 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2381 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1084 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1084, 2381)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1084, 2380) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1084) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.636000', 'WaterColour', '2012-10-01 15:59:22.636000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1371 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.640000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1371, '2012-10-01 15:59:22.640000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1084, 2382) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1084) LIMIT 1 Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1084) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3901 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1084) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-01 15:59:22.648000' WHERE "spree_products"."id" = 1084  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3901 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.651000' WHERE "spree_products"."id" = 1084 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1084 Row org.apache.poi.hssf.usermodel.HSSFRow@776444 succesfully SAVED : ID 1084 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.0 Current value to assign : 30.0  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:22.660000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load', 'demo-excel-load', NULL, NULL, '2012-10-01 15:59:22.660000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1085 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.663000' WHERE "spree_products"."id" = 1085 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1085, 'test_ct_002', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.665000' WHERE "spree_products"."id" = 1085  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3902 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.667000' WHERE "spree_products"."id" = 1085  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1085 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1085 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1085  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1085 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1085 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1085, 2380) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1085) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.677000', 'Oils', '2012-10-01 15:59:22.677000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1372 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.681000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1372, '2012-10-01 15:59:22.681000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1085, 2383) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1085) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2380 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.707000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2380, 'paintings/nature', 0, 10, 1370, '2012-10-01 15:59:22.707000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 SQL (2.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2384 THEN 2380 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2384 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.719000', NULL, NULL, NULL, NULL, NULL, 11, 'Landscape', 2384, 'paintings/nature/landscape', 0, 12, 1370, '2012-10-01 15:59:22.719000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2385 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2385 THEN 2384 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2385 LIMIT 1 Product assigned to Taxons : ["Nature", "Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1085, 2384)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1085, 2385) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1085) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3902 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1085) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-01 15:59:22.736000' WHERE "spree_products"."id" = 1085  (1.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3902 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.740000' WHERE "spree_products"."id" = 1085 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1085 Row org.apache.poi.hssf.usermodel.HSSFRow@1eb2cdb succesfully SAVED : ID 1085 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:22.749000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:59:22.749000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1086 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.752000' WHERE "spree_products"."id" = 1086 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1086, 'test_ct_003', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.754000' WHERE "spree_products"."id" = 1086  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3903 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.758000' WHERE "spree_products"."id" = 1086  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1086 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1086 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1086  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1086 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.764000', 'Drawings', '2012-10-01 15:59:22.764000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.768000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1373, '2012-10-01 15:59:22.768000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2386 AND "spree_taxons"."taxonomy_id" = 1373 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2386 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.775000', NULL, NULL, NULL, NULL, NULL, 15, 'Landscape', 2386, 'drawings/landscape', 0, 16, 1373, '2012-10-01 15:59:22.775000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2386 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2387 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2387 THEN 2386 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2386 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2387 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1086 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1086, 2387)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1086, 2386) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1086) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:22.787000', 'Landscape', '2012-10-01 15:59:22.787000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1374 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.790000', NULL, NULL, NULL, NULL, NULL, 17, 'Landscape', NULL, 'landscape', 0, 18, 1374, '2012-10-01 15:59:22.790000') Product assigned to Taxons : ["Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1086, 2388) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1086) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1086) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3903 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1086) LIMIT 1  (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-01 15:59:22.804000' WHERE "spree_products"."id" = 1086  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3903 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.807000' WHERE "spree_products"."id" = 1086 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1086 Row org.apache.poi.hssf.usermodel.HSSFRow@d6157e succesfully SAVED : ID 1086 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:22.821000', NULL, 'blah', NULL, NULL, 'Demo four', 'demo-four', NULL, NULL, '2012-10-01 15:59:22.821000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1087 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.824000' WHERE "spree_products"."id" = 1087 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (0.01, 0, NULL, NULL, NULL, 'f', NULL, 0.34, 1087, 'test_ct_004', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.826000' WHERE "spree_products"."id" = 1087  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3904 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.829000' WHERE "spree_products"."id" = 1087  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1087 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1087 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1087  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1087 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2386 AND "spree_taxons"."taxonomy_id" = 1373 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1087 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2387)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2386) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1087) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1087) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2380 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2384 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.849000', NULL, NULL, NULL, NULL, NULL, 19, 'Seascape', 2384, 'paintings/nature/seascape', 0, 20, 1370, '2012-10-01 15:59:22.849000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2389 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2389 THEN 2384 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2389 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 2389 AND "spree_taxons"."taxonomy_id" = 1370 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2389 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.859000', NULL, NULL, NULL, NULL, NULL, 21, 'Cliffs', 2389, 'paintings/nature/seascape/cliffs', 0, 22, 1370, '2012-10-01 15:59:22.859000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2389 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2390 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2390 THEN 2389 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2389 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2390 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2384)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2389)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2390)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1087, 2380) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1087) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3904 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1087) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-01 15:59:22.874000' WHERE "spree_products"."id" = 1087  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 3904 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.879000' WHERE "spree_products"."id" = 1087 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1087 Row org.apache.poi.hssf.usermodel.HSSFRow@1991a3c succesfully SAVED : ID 1087 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:22.887000', NULL, 'blah', NULL, NULL, 'Demo five', 'demo-five', NULL, NULL, '2012-10-01 15:59:22.887000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1088 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.890000' WHERE "spree_products"."id" = 1088 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (3.01, 0, NULL, NULL, NULL, 'f', NULL, 3.34, 1088, 'test_ct_005', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.892000' WHERE "spree_products"."id" = 1088  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3905 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.894000' WHERE "spree_products"."id" = 1088  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1088 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1088 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1088  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1088 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2386 AND "spree_taxons"."taxonomy_id" = 1373 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 2387 AND "spree_taxons"."taxonomy_id" = 1373 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2387 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:22.904000', NULL, NULL, NULL, NULL, NULL, 23, 'Bristol', 2387, 'drawings/landscape/bristol', 0, 24, 1373, '2012-10-01 15:59:22.904000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2387 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2391 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2391 THEN 2387 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2387 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2391 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1088 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1088, 2387)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1088, 2391)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1088, 2386) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1088) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1372 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1088, 2383) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1088) LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1088) LIMIT 1 Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3905 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1088) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-01 15:59:22.920000' WHERE "spree_products"."id" = 1088  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 3905 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:22.922000' WHERE "spree_products"."id" = 1088 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1088 Row org.apache.poi.hssf.usermodel.HSSFRow@1a98f3b succesfully SAVED : ID 1088 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE (permalink LIKE '%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE '-1%') Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = '-1' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1371 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1372 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1374 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1370 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2380 ORDER BY "lft"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 2380) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2384 ORDER BY "lft"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 2384) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 2384) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2380 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2384 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2389 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2390 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 2389) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1373 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2387 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2387 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2391 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 2391) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1372 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1372 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2383 ORDER BY "lft" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1374 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1374 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2388 ORDER BY "lft" SQL (6.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (26.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"  PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_taxons"  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-02-14 00:00:00.000000', 0, '2012-10-01 15:59:23.111000', NULL, 'blah blah', NULL, NULL, 'Demo Product for AR Loader', 'demo-product-for-ar-loader', NULL, NULL, '2012-10-01 15:59:23.111000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1089 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.116000' WHERE "spree_products"."id" = 1089 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (320.0, 0, NULL, NULL, NULL, 'f', NULL, 399.99, 1089, 'test_ct_001', NULL, NULL) SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.118000' WHERE "spree_products"."id" = 1089  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3906 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.121000' WHERE "spree_products"."id" = 1089  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1089 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1089 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1089  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1089 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:23.153000', 'Paintings', '2012-10-01 15:59:23.153000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.157000', NULL, NULL, NULL, NULL, NULL, 1, 'Paintings', NULL, 'paintings', 0, 2, 1375, '2012-10-01 15:59:23.157000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2392 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.170000', NULL, NULL, NULL, NULL, NULL, 3, 'Landscape', 2392, 'paintings/landscape', 0, 4, 1375, '2012-10-01 15:59:23.170000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2393 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2393 THEN 2392 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2393 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1089 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1089, 2393)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1089, 2392) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1089) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:23.185000', 'WaterColour', '2012-10-01 15:59:23.185000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1376 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.188000', NULL, NULL, NULL, NULL, NULL, 5, 'WaterColour', NULL, 'watercolour', 0, 6, 1376, '2012-10-01 15:59:23.188000') Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1089, 2394) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1089) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3906 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row test_ct_001Demo Product for AR Loaderblah blah2011-02-14399.99320.00Paintings>LandscapeWaterColour2 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1089) LIMIT 1  (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-01 15:59:23.202000' WHERE "spree_products"."id" = 1089  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 3906 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.204000' WHERE "spree_products"."id" = 1089 SQL (1.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1089 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2011-05-14 00:00:00.000000', 0, '2012-10-01 15:59:23.211000', NULL, 'less blah', NULL, NULL, 'Demo Excel Load', 'demo-excel-load', NULL, NULL, '2012-10-01 15:59:23.211000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1090 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.214000' WHERE "spree_products"."id" = 1090 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (30.0, 0, NULL, NULL, NULL, 'f', NULL, 100.0, 1090, 'test_ct_002', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.216000' WHERE "spree_products"."id" = 1090  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3907 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.218000' WHERE "spree_products"."id" = 1090  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1090 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1090 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1090  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1090 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1090 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1090, 2392) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1090) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:23.230000', 'Oils', '2012-10-01 15:59:23.230000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1377 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.234000', NULL, NULL, NULL, NULL, NULL, 7, 'Oils', NULL, 'oils', 0, 8, 1377, '2012-10-01 15:59:23.234000') Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1090, 2395) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1090) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2392 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.242000', NULL, NULL, NULL, NULL, NULL, 9, 'Nature', 2392, 'paintings/nature', 0, 10, 1375, '2012-10-01 15:59:23.242000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2396 THEN 2392 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2396 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.251000', NULL, NULL, NULL, NULL, NULL, 11, 'Landscape', 2396, 'paintings/nature/landscape', 0, 12, 1375, '2012-10-01 15:59:23.251000') Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2397 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2397 THEN 2396 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2397 LIMIT 1 Product assigned to Taxons : ["Nature", "Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1090, 2396)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1090, 2397) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1090) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3907 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row test_ct_002Demo Excel Loadless blah2011-05-14100.0030.00PaintingsOilsPaintings>Nature>Landscape5 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1090) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-01 15:59:23.266000' WHERE "spree_products"."id" = 1090  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 3907 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.268000' WHERE "spree_products"."id" = 1090 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1090 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:23.279000', NULL, 'more blah blah', NULL, NULL, 'Demo third row in future', 'demo-third-row-in-future', NULL, NULL, '2012-10-01 15:59:23.279000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1091 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.282000' WHERE "spree_products"."id" = 1091 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (23.34, 0, NULL, NULL, NULL, 'f', NULL, 50.34, 1091, 'test_ct_003', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.284000' WHERE "spree_products"."id" = 1091  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3908 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.287000' WHERE "spree_products"."id" = 1091  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1091 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1091 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1091  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1091 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:23.303000', 'Drawings', '2012-10-01 15:59:23.303000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.307000', NULL, NULL, NULL, NULL, NULL, 13, 'Drawings', NULL, 'drawings', 0, 14, 1378, '2012-10-01 15:59:23.307000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2398 AND "spree_taxons"."taxonomy_id" = 1378 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2398 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.312000', NULL, NULL, NULL, NULL, NULL, 15, 'Landscape', 2398, 'drawings/landscape', 0, 16, 1378, '2012-10-01 15:59:23.312000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2398 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2399 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2399 THEN 2398 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2398 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2399 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1091 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1091, 2399)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1091, 2398) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1091) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES ('2012-10-01 15:59:23.324000', 'Landscape', '2012-10-01 15:59:23.324000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1379 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.328000', NULL, NULL, NULL, NULL, NULL, 17, 'Landscape', NULL, 'landscape', 0, 18, 1379, '2012-10-01 15:59:23.328000') Product assigned to Taxons : ["Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1091, 2400) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1091) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3908 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row test_ct_003Demo third row in futuremore blah blah2012-07-0150.3423.34Drawings>LandscapeLandscape7 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1091) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-01 15:59:23.341000' WHERE "spree_products"."id" = 1091  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 3908 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.344000' WHERE "spree_products"."id" = 1091 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1091 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:23.354000', NULL, 'blah', NULL, NULL, 'Demo four', 'demo-four', NULL, NULL, '2012-10-01 15:59:23.354000') Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1092 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.357000' WHERE "spree_products"."id" = 1092 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (0.01, 0, NULL, NULL, NULL, 'f', NULL, 0.34, 1092, 'test_ct_004', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.360000' WHERE "spree_products"."id" = 1092  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3909 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.362000' WHERE "spree_products"."id" = 1092  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1092 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1092 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1092  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1092 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2398 AND "spree_taxons"."taxonomy_id" = 1378 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1092 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2399)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2398) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1092) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 2392 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 2396 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.384000', NULL, NULL, NULL, NULL, NULL, 19, 'Seascape', 2396, 'paintings/nature/seascape', 0, 20, 1375, '2012-10-01 15:59:23.384000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2401 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2401 THEN 2396 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2401 LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 2401 AND "spree_taxons"."taxonomy_id" = 1375 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2401 LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.394000', NULL, NULL, NULL, NULL, NULL, 21, 'Cliffs', 2401, 'paintings/nature/seascape/cliffs', 0, 22, 1375, '2012-10-01 15:59:23.394000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2401 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2402 LIMIT 1 SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2402 THEN 2401 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2401 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2402 LIMIT 1 Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2396)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2401)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2402)  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1092, 2392) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1092) LIMIT 1 Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3909 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row test_ct_004Demo fourblah2012-07-010.340.01Drawings>LandscapePaintings>Nature>Seascape>Cliffs3 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1092) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-01 15:59:23.409000' WHERE "spree_products"."id" = 1092  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 3909 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.412000' WHERE "spree_products"."id" = 1092 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1092 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES ('2012-07-01 00:00:00.000000', 0, '2012-10-01 15:59:23.424000', NULL, 'blah', NULL, NULL, 'Demo five', 'demo-five', NULL, NULL, '2012-10-01 15:59:23.424000') Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1093 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.427000' WHERE "spree_products"."id" = 1093 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (3.01, 0, NULL, NULL, NULL, 'f', NULL, 3.34, 1093, 'test_ct_005', NULL, NULL) SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.429000' WHERE "spree_products"."id" = 1093  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 3910 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.432000' WHERE "spree_products"."id" = 1093  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1093 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1093 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1093  (1.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1093 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 2398 AND "spree_taxons"."taxonomy_id" = 1378 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 2399 AND "spree_taxons"."taxonomy_id" = 1378 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2399 LIMIT 1 SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES ('2012-10-01 15:59:23.444000', NULL, NULL, NULL, NULL, NULL, 23, 'Bristol', 2399, 'drawings/landscape/bristol', 0, 24, 1378, '2012-10-01 15:59:23.444000') Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2399 ORDER BY "spree_taxons"."lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2403 LIMIT 1 SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 2403 THEN 2399 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2399 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = 2403 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1093 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1093, 2399)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1093, 2403)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1093, 2398) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1093) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1377 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1093, 2395) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1093) LIMIT 1 Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 3910 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row test_ct_005Demo fiveblah2012-07-013.343.01Drawings>Landscape>BristolOils3 to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1093) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-01 15:59:23.467000' WHERE "spree_products"."id" = 1093  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 3910 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-01 15:59:23.470000' WHERE "spree_products"."id" = 1093 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1093  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1376 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1377 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1379 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons"  (1.0ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1375 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2392 ORDER BY "lft"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 2392) Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2396 ORDER BY "lft"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 2396) Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 2396) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2392 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 2396 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2401 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2402 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 2401) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1378 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2399 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2399 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2403 ORDER BY "lft" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 2403) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1377 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1377 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2395 ORDER BY "lft" Spree::Taxonomy Load (1.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1379 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 1379 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 2400 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (29.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (2.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (1.0ms) DELETE FROM "spree_product_properties" SQL (1.0ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (32.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (29.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (5.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.0ms) DELETE FROM "spree_option_values" SQL (1.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (27.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.0ms) DELETE FROM "spree_variants" SQL (28.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones" SQL (3.0ms) DELETE FROM "spree_products" SQL (0.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (28.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones" SQL (3.0ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (32.0ms) DELETE FROM "spree_taxons" SQL (3.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones" Booted Spree using version 1.1.3 SQL (7.3ms) DELETE FROM "spree_products" SQL (3.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.2ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.5ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (6.6ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 3 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 3 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 4 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 4 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 5 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 5 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 6 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 6 Current value to assign : Current value to assign :  (2.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.0ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (3.8ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (18.4ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 7 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 8 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 9 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 10  (2.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (1.6ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (17.9ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (19.8ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.9ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.3ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500593 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.593570' WHERE "spree_products"."id" = 1060500593 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500593], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.596381' WHERE "spree_products"."id" = 1060500593  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589413 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.598603' WHERE "spree_products"."id" = 1060500593  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500593 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500593 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500593  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500593 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589413 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500593) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500593 AND "spree_option_types"."id" = 935339118 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500593) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339118], ["position", 1], ["product_id", 1060500593], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500593) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:26:41.710266' WHERE "spree_products"."id" = 1060500593  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589413 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.712056' WHERE "spree_products"."id" = 1060500593 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500593 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500593 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500594 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.718554' WHERE "spree_products"."id" = 1060500594 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500594], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.719563' WHERE "spree_products"."id" = 1060500594  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589414 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.720822' WHERE "spree_products"."id" = 1060500594  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500594 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500594 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500594  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500594 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589414 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500594) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500594 AND "spree_option_types"."id" = 935339118 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500594) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339118], ["position", 1], ["product_id", 1060500594], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500594) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:26:41.731632' WHERE "spree_products"."id" = 1060500594  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589414 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.733068' WHERE "spree_products"."id" = 1060500594 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500594 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500594 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500595 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.739087' WHERE "spree_products"."id" = 1060500595 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500595], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.740118' WHERE "spree_products"."id" = 1060500595  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589415 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.741404' WHERE "spree_products"."id" = 1060500595  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500595 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500595 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500595  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500595 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589415 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500595) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500595 AND "spree_option_types"."id" = 935339118 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500595) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339118], ["position", 1], ["product_id", 1060500595], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500595 AND "spree_option_types"."id" = 935339119 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500595) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339119], ["position", 2], ["product_id", 1060500595], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500595) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:26:41.755029' WHERE "spree_products"."id" = 1060500595  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589415 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.756249' WHERE "spree_products"."id" = 1060500595 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500595 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500595 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.3ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_products"  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:26:41.768308')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:26:41.769299')  (17.0ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500593 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500593 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500593 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500595 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.2ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (2.8ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (1.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500596 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.907237' WHERE "spree_products"."id" = 1060500596 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500596], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.908698' WHERE "spree_products"."id" = 1060500596  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589416 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.910681' WHERE "spree_products"."id" = 1060500596  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500596 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500596 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500596  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500596 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589416 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500596) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500596 AND "spree_option_types"."id" = 935339120 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500596) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339120], ["position", 1], ["product_id", 1060500596], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500596) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:26:41.940029' WHERE "spree_products"."id" = 1060500596  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589416 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.941502' WHERE "spree_products"."id" = 1060500596 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500596 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500597 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.949464' WHERE "spree_products"."id" = 1060500597 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500597], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.950435' WHERE "spree_products"."id" = 1060500597  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589417 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.951215' WHERE "spree_products"."id" = 1060500597  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500597 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500597 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500597  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500597 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589417 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500597) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500597 AND "spree_option_types"."id" = 935339120 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500597) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339120], ["position", 1], ["product_id", 1060500597], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500597) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:26:41.977514' WHERE "spree_products"."id" = 1060500597  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589417 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.978804' WHERE "spree_products"."id" = 1060500597 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500597 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500598 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.985378' WHERE "spree_products"."id" = 1060500598 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500598], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.986642' WHERE "spree_products"."id" = 1060500598  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589418 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:41.987777' WHERE "spree_products"."id" = 1060500598  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500598 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500598 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500598  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500598 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589418 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500598) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500598 AND "spree_option_types"."id" = 935339120 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500598) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["option_type_id", 935339120], ["position", 1], ["product_id", 1060500598], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:41 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500598 AND "spree_option_types"."id" = 935339121 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500598) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339121], ["position", 2], ["product_id", 1060500598], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500598) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:26:42.001804' WHERE "spree_products"."id" = 1060500598  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589418 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.003453' WHERE "spree_products"."id" = 1060500598 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500598  (5.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:26:42.012471')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:26:42.013109')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500596 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500596 ORDER BY spree_option_types.position  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500596 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500598 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.4ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.8ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:26:42 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500599 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.116646' WHERE "spree_products"."id" = 1060500599 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500599], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.118231' WHERE "spree_products"."id" = 1060500599  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589419 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.119438' WHERE "spree_products"."id" = 1060500599  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500599 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500599 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500599  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500599 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500599 AND "spree_option_types"."id" = 935339122 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500599) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339122], ["position", 1], ["product_id", 1060500599], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500599) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500599 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:26:42 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500600 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.150899' WHERE "spree_products"."id" = 1060500600 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500600], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.152109' WHERE "spree_products"."id" = 1060500600  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589420 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.153218' WHERE "spree_products"."id" = 1060500600  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500600 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500600 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500600  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500600 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500600 AND "spree_option_types"."id" = 935339122 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500600) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339122], ["position", 1], ["product_id", 1060500600], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500600) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500600 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:26:42 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500601 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.184654' WHERE "spree_products"."id" = 1060500601 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500601], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.185562' WHERE "spree_products"."id" = 1060500601  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589421 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.186466' WHERE "spree_products"."id" = 1060500601  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500601 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500601 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500601  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500601 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500601 AND "spree_option_types"."id" = 935339122 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500601) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339122], ["position", 1], ["product_id", 1060500601], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500601 AND "spree_option_types"."id" = 935339123 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500601) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339123], ["position", 2], ["product_id", 1060500601], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500601) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500601 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500599 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (20.6ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (1.2ms) DELETE FROM "spree_properties" SQL (19.9ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.5ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500602 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.333402' WHERE "spree_products"."id" = 1060500602 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500602], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.335141' WHERE "spree_products"."id" = 1060500602  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589422 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.336661' WHERE "spree_products"."id" = 1060500602  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500602 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500602 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500602  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500602 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (17.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500602 AND "spree_option_types"."id" = 935339124 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500602) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339124], ["position", 1], ["product_id", 1060500602], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500602) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500602 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500603 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.370731' WHERE "spree_products"."id" = 1060500603 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500603], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.371803' WHERE "spree_products"."id" = 1060500603  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589423 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.372952' WHERE "spree_products"."id" = 1060500603  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500603 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500603 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500603  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500603 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (15.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500603 AND "spree_option_types"."id" = 935339124 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500603) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339124], ["position", 1], ["product_id", 1060500603], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500603) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500603 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500604 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.402863' WHERE "spree_products"."id" = 1060500604 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500604], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.403809' WHERE "spree_products"."id" = 1060500604  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589424 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.405140' WHERE "spree_products"."id" = 1060500604  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500604 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500604 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500604  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500604 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500604 AND "spree_option_types"."id" = 935339124 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500604) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339124], ["position", 1], ["product_id", 1060500604], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500604 AND "spree_option_types"."id" = 935339125 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500604) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339125], ["position", 2], ["product_id", 1060500604], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500604) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500604 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500602 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products"  SQL (1.7ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (16.8ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (2.6ms) DELETE FROM "spree_variants" SQL (21.2ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (1.4ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]]  (3.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (1.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.531092' WHERE "spree_products"."id" = 1060500605 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500605], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.549811' WHERE "spree_products"."id" = 1060500605  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589425 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.551483' WHERE "spree_products"."id" = 1060500605  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500605  (1.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["product_id", nil], ["property_id", 905834903], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500605, "updated_at" = '2012-10-15 15:26:42.613394' WHERE "spree_product_properties"."id" = 1073273137 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500605) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451431 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451431], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500605 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500605, 558398359) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451432 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451432], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500605, 558398360) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500605) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500605 AND "spree_option_types"."id" = 935339126 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500605) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339126], ["position", 1], ["product_id", 1060500605], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339126) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339126], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.696716' WHERE "spree_products"."id" = 1060500605 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500605], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.697986' WHERE "spree_products"."id" = 1060500605  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589426, 979459987) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339126) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339126], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.705572' WHERE "spree_products"."id" = 1060500605 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500605], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.706573' WHERE "spree_products"."id" = 1060500605  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589427, 979459988) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339126) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339126], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.711346' WHERE "spree_products"."id" = 1060500605 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500605], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.712356' WHERE "spree_products"."id" = 1060500605  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589428, 979459989) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500605]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500605) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589426 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589427 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589428 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500605) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.724325' WHERE "spree_products"."id" = 1060500605  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589426 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.725679' WHERE "spree_products"."id" = 1060500605 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.727577' WHERE "spree_products"."id" = 1060500605  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589427 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.728790' WHERE "spree_products"."id" = 1060500605 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500605 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.729569' WHERE "spree_products"."id" = 1060500605  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589428 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.730695' WHERE "spree_products"."id" = 1060500605 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500605) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500605 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:26:42.732721' WHERE "spree_products"."id" = 1060500605 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500605 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.739164' WHERE "spree_products"."id" = 1060500606 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500606], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.740081' WHERE "spree_products"."id" = 1060500606  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589429 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.741213' WHERE "spree_products"."id" = 1060500606  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500606  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["product_id", nil], ["property_id", 905834904], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500606, "updated_at" = '2012-10-15 15:26:42.746598' WHERE "spree_product_properties"."id" = 1073273138 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500606) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451431 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500606 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500606, 558398359) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451433 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451433], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500606, 558398361) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451431 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398359 AND "spree_taxons"."taxonomy_id" = 854451431 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398359]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398359], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451431], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398359]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398362]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398362 THEN 558398359 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398359]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398362]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398362 AND "spree_taxons"."taxonomy_id" = 854451431 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398362]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398362], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451431], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398362]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398363]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398363 THEN 558398362 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398362]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398363]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500606, 558398362)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500606, 558398363) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500606) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500606 AND "spree_option_types"."id" = 935339126 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500606) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339126], ["position", 1], ["product_id", 1060500606], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.779688' WHERE "spree_products"."id" = 1060500606 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500606], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.781174' WHERE "spree_products"."id" = 1060500606  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589430, 979459987) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.783196' WHERE "spree_products"."id" = 1060500606 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500606], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.784085' WHERE "spree_products"."id" = 1060500606  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589431, 979459988) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.786910' WHERE "spree_products"."id" = 1060500606 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500606], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.787814' WHERE "spree_products"."id" = 1060500606  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589432, 979459989) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500606]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500606) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589430 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589431 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589432 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500606) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.800018' WHERE "spree_products"."id" = 1060500606  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589430 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.800758' WHERE "spree_products"."id" = 1060500606 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.801593' WHERE "spree_products"."id" = 1060500606  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589431 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.802585' WHERE "spree_products"."id" = 1060500606 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500606 LIMIT 1 SQL (42.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.803592' WHERE "spree_products"."id" = 1060500606  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589432 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.847444' WHERE "spree_products"."id" = 1060500606 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500606) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500606 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:26:42.850637' WHERE "spree_products"."id" = 1060500606 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500606 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.857112' WHERE "spree_products"."id" = 1060500607 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.858113' WHERE "spree_products"."id" = 1060500607  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589433 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.859245' WHERE "spree_products"."id" = 1060500607  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500607  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["product_id", nil], ["property_id", 905834905], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500607, "updated_at" = '2012-10-15 15:26:42.864433' WHERE "spree_product_properties"."id" = 1073273139 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["product_id", nil], ["property_id", 905834904], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500607, "updated_at" = '2012-10-15 15:26:42.866268' WHERE "spree_product_properties"."id" = 1073273140 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["product_id", nil], ["property_id", 905834906], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500607, "updated_at" = '2012-10-15 15:26:42.869551' WHERE "spree_product_properties"."id" = 1073273141 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500607) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451434 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451434], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500607 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500607, 558398364) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451431 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398359 AND "spree_taxons"."taxonomy_id" = 854451431 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398359]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398359], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451431], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398359]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398365]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398365 THEN 558398359 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398359]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398365]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500607, 558398365)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500607, 558398359) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500607) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500607 AND "spree_option_types"."id" = 935339126 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500607) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339126], ["position", 1], ["product_id", 1060500607], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.894400' WHERE "spree_products"."id" = 1060500607 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.895816' WHERE "spree_products"."id" = 1060500607  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589434, 979459987) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.898010' WHERE "spree_products"."id" = 1060500607 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.899144' WHERE "spree_products"."id" = 1060500607  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589435, 979459988) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339126 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.901785' WHERE "spree_products"."id" = 1060500607 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.902949' WHERE "spree_products"."id" = 1060500607  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589436, 979459989) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500607]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500607 AND "spree_option_types"."id" = 935339127 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500607) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["option_type_id", 935339127], ["position", 2], ["product_id", 1060500607], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339127 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339127) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339127], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.914243' WHERE "spree_products"."id" = 1060500607 SQL (0.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.915816' WHERE "spree_products"."id" = 1060500607  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589437, 979459990) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339127 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339127) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00], ["name", "colour"], ["option_type_id", 935339127], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:42 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.920575' WHERE "spree_products"."id" = 1060500607 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500607], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.921539' WHERE "spree_products"."id" = 1060500607  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589438, 979459991) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500607]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500607) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589434 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589435 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589436 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589437 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589438 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500607) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.952454' WHERE "spree_products"."id" = 1060500607  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589434 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.953535' WHERE "spree_products"."id" = 1060500607 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.954678' WHERE "spree_products"."id" = 1060500607  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589435 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.955367' WHERE "spree_products"."id" = 1060500607 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.956159' WHERE "spree_products"."id" = 1060500607  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589436 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.956997' WHERE "spree_products"."id" = 1060500607 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.958219' WHERE "spree_products"."id" = 1060500607  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589437 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.959019' WHERE "spree_products"."id" = 1060500607 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500607 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.959863' WHERE "spree_products"."id" = 1060500607  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589438 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:42.960685' WHERE "spree_products"."id" = 1060500607 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500607) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500607 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:26:42.962943' WHERE "spree_products"."id" = 1060500607 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500607 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (23.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500605 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500607 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500607 SQL (3.8ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (18.9ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.3ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (2.7ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]]  (1.6ms) commit transaction  (0.0ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.142678' WHERE "spree_products"."id" = 1060500608 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500608], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.159299' WHERE "spree_products"."id" = 1060500608  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589439 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.161116' WHERE "spree_products"."id" = 1060500608  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500608  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["product_id", nil], ["property_id", 905834907], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500608, "updated_at" = '2012-10-15 15:26:43.165537' WHERE "spree_product_properties"."id" = 1073273142 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451435 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451435], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500608 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500608, 558398366) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451436 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451436], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500608, 558398367) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500608 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500608) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["option_type_id", 935339128], ["position", 1], ["product_id", 1060500608], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339128) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339128], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.196945' WHERE "spree_products"."id" = 1060500608 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500608], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.198209' WHERE "spree_products"."id" = 1060500608  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589440, 979459992) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500608]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500608 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339128) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339128], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.206109' WHERE "spree_products"."id" = 1060500608 SQL (0.9ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500608], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.207949' WHERE "spree_products"."id" = 1060500608  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589441, 979459993) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500608]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (16.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500608 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339128) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339128], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.232532' WHERE "spree_products"."id" = 1060500608 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500608], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.233785' WHERE "spree_products"."id" = 1060500608  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589442, 979459994) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500608]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589440 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589441 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589442 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.249927' WHERE "spree_products"."id" = 1060500608  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589440 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.250967' WHERE "spree_products"."id" = 1060500608 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.251875' WHERE "spree_products"."id" = 1060500608  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589441 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.252672' WHERE "spree_products"."id" = 1060500608 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500608 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.253521' WHERE "spree_products"."id" = 1060500608  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589442 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.254236' WHERE "spree_products"."id" = 1060500608 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500608) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500608 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:26:43.256197' WHERE "spree_products"."id" = 1060500608 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500608 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.263186' WHERE "spree_products"."id" = 1060500609 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500609], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.264121' WHERE "spree_products"."id" = 1060500609  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589443 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.265057' WHERE "spree_products"."id" = 1060500609  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500609  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["product_id", nil], ["property_id", 905834908], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500609, "updated_at" = '2012-10-15 15:26:43.270516' WHERE "spree_product_properties"."id" = 1073273143 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451435 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500609 Product assigned to Taxons : ["Paintings"]  (1.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500609, 558398366) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451437 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451437], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500609, 558398368) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451435 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398366 AND "spree_taxons"."taxonomy_id" = 854451435 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398366]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398366], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451435], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398366]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398369]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398369 THEN 558398366 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398366]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398369]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398369 AND "spree_taxons"."taxonomy_id" = 854451435 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398369]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398369], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451435], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398369]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398370]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398370 THEN 558398369 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398369]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398370]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.6ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500609, 558398369)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500609, 558398370) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500609 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500609) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["option_type_id", 935339128], ["position", 1], ["product_id", 1060500609], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.308903' WHERE "spree_products"."id" = 1060500609 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500609], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.309754' WHERE "spree_products"."id" = 1060500609  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589444, 979459992) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500609]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500609 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.316344' WHERE "spree_products"."id" = 1060500609 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500609], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.317193' WHERE "spree_products"."id" = 1060500609  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589445, 979459993) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500609]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500609 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.322747' WHERE "spree_products"."id" = 1060500609 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500609], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.323784' WHERE "spree_products"."id" = 1060500609  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589446, 979459994) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500609]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589444 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589445 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589446 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.338270' WHERE "spree_products"."id" = 1060500609  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589444 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.339129' WHERE "spree_products"."id" = 1060500609 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.340167' WHERE "spree_products"."id" = 1060500609  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589445 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.340959' WHERE "spree_products"."id" = 1060500609 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500609 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.341874' WHERE "spree_products"."id" = 1060500609  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589446 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.342658' WHERE "spree_products"."id" = 1060500609 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500609) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500609 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:26:43.344568' WHERE "spree_products"."id" = 1060500609 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500609 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.350821' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.351768' WHERE "spree_products"."id" = 1060500610  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589447 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.352821' WHERE "spree_products"."id" = 1060500610  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500610  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["product_id", nil], ["property_id", 905834909], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500610, "updated_at" = '2012-10-15 15:26:43.358471' WHERE "spree_product_properties"."id" = 1073273144 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["product_id", nil], ["property_id", 905834908], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500610, "updated_at" = '2012-10-15 15:26:43.360821' WHERE "spree_product_properties"."id" = 1073273145 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["product_id", nil], ["property_id", 905834910], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500610, "updated_at" = '2012-10-15 15:26:43.364503' WHERE "spree_product_properties"."id" = 1073273146 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451438 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451438], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500610 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500610, 558398371) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451435 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398366 AND "spree_taxons"."taxonomy_id" = 854451435 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398366]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398366], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451435], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398366]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398372]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398372 THEN 558398366 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398366]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398372]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500610, 558398372)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500610, 558398366) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500610 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500610) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["option_type_id", 935339128], ["position", 1], ["product_id", 1060500610], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.387956' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.389306' WHERE "spree_products"."id" = 1060500610  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589448, 979459992) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500610]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500610 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.395822' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.396983' WHERE "spree_products"."id" = 1060500610  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589449, 979459993) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500610]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500610 AND "spree_option_types"."id" = 935339128 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339128 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.403404' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.404582' WHERE "spree_products"."id" = 1060500610  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589450, 979459994) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500610]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (36.9ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500610 AND "spree_option_types"."id" = 935339129 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500610) ORDER BY position DESC LIMIT 1 SQL (0.7ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["option_type_id", 935339129], ["position", 2], ["product_id", 1060500610], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339129 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339129) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339129], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.455550' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.456823' WHERE "spree_products"."id" = 1060500610  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589451, 979459995) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500610]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500610 AND "spree_option_types"."id" = 935339129 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339129 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339129) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00], ["name", "colour"], ["option_type_id", 935339129], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:26:43 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.483999' WHERE "spree_products"."id" = 1060500610 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500610], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.485070' WHERE "spree_products"."id" = 1060500610  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589452, 979459996) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500610]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589448 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589449 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589450 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589451 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589452 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.500021' WHERE "spree_products"."id" = 1060500610  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589448 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.500936' WHERE "spree_products"."id" = 1060500610 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.501786' WHERE "spree_products"."id" = 1060500610  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589449 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.502549' WHERE "spree_products"."id" = 1060500610 Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.504008' WHERE "spree_products"."id" = 1060500610  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589450 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.504658' WHERE "spree_products"."id" = 1060500610 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.505719' WHERE "spree_products"."id" = 1060500610  (0.5ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589451 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.508043' WHERE "spree_products"."id" = 1060500610 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500610 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.509086' WHERE "spree_products"."id" = 1060500610  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589452 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:26:43.509823' WHERE "spree_products"."id" = 1060500610 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500610) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500610 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:26:43.512666' WHERE "spree_products"."id" = 1060500610 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500610 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (21.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500608 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500610 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500610 SQL (3.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.2ms) DELETE FROM "spree_properties" SQL (18.8ms) DELETE FROM "spree_product_properties" SQL (2.3ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.9ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.2ms) DELETE FROM "spree_option_values" SQL (1.2ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (17.4ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.3ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (3.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.3ms) DELETE FROM "spree_product_properties" SQL (17.1ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.2ms) DELETE FROM "spree_taxonomies" SQL (1.2ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.7ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (6.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.8ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (6.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451439 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451439], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451439], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.2ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (2.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451439], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (1.6ms) commit transaction ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (15.8ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (2.3ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (2.6ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451440 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451440], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451440], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (21.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451440], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.2ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product SQL (2.6ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (4.2ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (4.0ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451441 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451441], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451441], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (2.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451441], ["updated_at", Mon, 15 Oct 2012 15:27:29 UTC +00:00]]  (1.9ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (4.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (5.7ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (4.8ms) DELETE FROM "spree_variants" SQL (67.6ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (3.1ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: # SQL (2.8ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (0.4ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 11 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 11 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.3ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 12 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 12 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 13 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 13 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 14 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 14 Current value to assign : Current value to assign :  (2.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (1.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (4.9ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.3ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.3ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 15 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 16 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 17 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 18  (5.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (5.4ms) DELETE FROM "spree_properties" SQL (2.6ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.6ms) commit transaction PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.1ms) DELETE FROM "spree_variants" SQL (2.5ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.3ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.9ms) DELETE FROM "spree_product_properties" SQL (3.1ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500611 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.547410' WHERE "spree_products"."id" = 1060500611 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500611], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.550674' WHERE "spree_products"."id" = 1060500611  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589453 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.553687' WHERE "spree_products"."id" = 1060500611  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500611 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500611 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500611  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500611 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589453 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500611) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500611 AND "spree_option_types"."id" = 935339130 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500611) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339130], ["position", 1], ["product_id", 1060500611], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500611) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:27:30.660735' WHERE "spree_products"."id" = 1060500611  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589453 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.663588' WHERE "spree_products"."id" = 1060500611 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500611 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500611 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500612 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.670934' WHERE "spree_products"."id" = 1060500612 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500612], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.672291' WHERE "spree_products"."id" = 1060500612  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589454 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.673323' WHERE "spree_products"."id" = 1060500612  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500612 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500612 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500612  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500612 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589454 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500612) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500612 AND "spree_option_types"."id" = 935339130 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500612) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339130], ["position", 1], ["product_id", 1060500612], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500612) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:27:30.687489' WHERE "spree_products"."id" = 1060500612  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589454 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.688847' WHERE "spree_products"."id" = 1060500612 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500612 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500612 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500613 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.699821' WHERE "spree_products"."id" = 1060500613 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500613], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.701221' WHERE "spree_products"."id" = 1060500613  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589455 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.704306' WHERE "spree_products"."id" = 1060500613  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500613 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500613 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500613  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500613 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (1.9ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589455 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500613) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500613 AND "spree_option_types"."id" = 935339130 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500613) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339130], ["position", 1], ["product_id", 1060500613], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500613 AND "spree_option_types"."id" = 935339131 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500613) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339131], ["position", 2], ["product_id", 1060500613], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500613) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:27:30.722735' WHERE "spree_products"."id" = 1060500613  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589455 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.724123' WHERE "spree_products"."id" = 1060500613 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500613 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500613 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:27:30.739290')  (0.6ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:27:30.740381')  (0.2ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500611 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500611 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500611 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (2.1ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500613 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (4.2ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (2.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500614 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.850862' WHERE "spree_products"."id" = 1060500614 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500614], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.852182' WHERE "spree_products"."id" = 1060500614  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589456 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.854632' WHERE "spree_products"."id" = 1060500614  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500614 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500614 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500614  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500614 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589456 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500614) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500614 AND "spree_option_types"."id" = 935339132 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500614) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339132], ["position", 1], ["product_id", 1060500614], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (2.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500614) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:27:30.871414' WHERE "spree_products"."id" = 1060500614  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589456 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.872893' WHERE "spree_products"."id" = 1060500614 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500614 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (2.7ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500615 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.882571' WHERE "spree_products"."id" = 1060500615 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500615], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.883414' WHERE "spree_products"."id" = 1060500615  (0.5ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589457 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.885053' WHERE "spree_products"."id" = 1060500615  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500615 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500615 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500615  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500615 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589457 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500615) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500615 AND "spree_option_types"."id" = 935339132 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500615) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339132], ["position", 1], ["product_id", 1060500615], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500615) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:27:30.896415' WHERE "spree_products"."id" = 1060500615  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589457 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.897758' WHERE "spree_products"."id" = 1060500615 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500615 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500616 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.903973' WHERE "spree_products"."id" = 1060500616 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500616], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.904896' WHERE "spree_products"."id" = 1060500616  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589458 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.906021' WHERE "spree_products"."id" = 1060500616  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500616 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500616 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500616  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500616 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589458 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500616) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500616 AND "spree_option_types"."id" = 935339132 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500616) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339132], ["position", 1], ["product_id", 1060500616], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500616 AND "spree_option_types"."id" = 935339133 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500616) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00], ["option_type_id", 935339133], ["position", 2], ["product_id", 1060500616], ["updated_at", Mon, 15 Oct 2012 15:27:30 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500616) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:27:30.920140' WHERE "spree_products"."id" = 1060500616  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589458 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:30.921415' WHERE "spree_products"."id" = 1060500616 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500616  (4.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:27:30.927415')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:27:30.927902')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500614 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500614 ORDER BY spree_option_types.position  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500614 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500616 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.9ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:27:30 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500617 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.011851' WHERE "spree_products"."id" = 1060500617 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500617], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.013259' WHERE "spree_products"."id" = 1060500617  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589459 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.014416' WHERE "spree_products"."id" = 1060500617  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500617 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500617 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500617  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500617 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500617 AND "spree_option_types"."id" = 935339134 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500617) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339134], ["position", 1], ["product_id", 1060500617], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500617) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500617 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:27:30 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500618 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.029598' WHERE "spree_products"."id" = 1060500618 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500618], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.030836' WHERE "spree_products"."id" = 1060500618  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589460 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.032285' WHERE "spree_products"."id" = 1060500618  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500618 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500618 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500618  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500618 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500618 AND "spree_option_types"."id" = 935339134 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500618) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339134], ["position", 1], ["product_id", 1060500618], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500618) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500618 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (1.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:27:30 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500619 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.045812' WHERE "spree_products"."id" = 1060500619 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500619], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.047147' WHERE "spree_products"."id" = 1060500619  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589461 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.048417' WHERE "spree_products"."id" = 1060500619  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500619 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500619 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500619  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500619 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500619 AND "spree_option_types"."id" = 935339134 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500619) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339134], ["position", 1], ["product_id", 1060500619], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500619 AND "spree_option_types"."id" = 935339135 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500619) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339135], ["position", 2], ["product_id", 1060500619], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500619) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500619 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500617 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.2ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500620 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.111598' WHERE "spree_products"."id" = 1060500620 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500620], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.112859' WHERE "spree_products"."id" = 1060500620  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589462 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.113953' WHERE "spree_products"."id" = 1060500620  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500620 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500620 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500620  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500620 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500620 AND "spree_option_types"."id" = 935339136 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500620) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339136], ["position", 1], ["product_id", 1060500620], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500620) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500620 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500621 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.127961' WHERE "spree_products"."id" = 1060500621 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500621], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.129299' WHERE "spree_products"."id" = 1060500621  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589463 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.130236' WHERE "spree_products"."id" = 1060500621  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500621 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500621 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500621  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500621 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500621 AND "spree_option_types"."id" = 935339136 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500621) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339136], ["position", 1], ["product_id", 1060500621], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500621) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500621 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500622 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.142286' WHERE "spree_products"."id" = 1060500622 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500622], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.143418' WHERE "spree_products"."id" = 1060500622  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589464 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.144659' WHERE "spree_products"."id" = 1060500622  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500622 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500622 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500622  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500622 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500622 AND "spree_option_types"."id" = 935339136 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500622) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339136], ["position", 1], ["product_id", 1060500622], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500622 AND "spree_option_types"."id" = 935339137 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500622) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339137], ["position", 2], ["product_id", 1060500622], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500622) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500622 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500620 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (1.8ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.260333' WHERE "spree_products"."id" = 1060500623 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500623], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.261587' WHERE "spree_products"."id" = 1060500623  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589465 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.262829' WHERE "spree_products"."id" = 1060500623  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500623  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834911], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500623, "updated_at" = '2012-10-15 15:27:31.279800' WHERE "spree_product_properties"."id" = 1073273147 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500623) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451442 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451442], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500623 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500623, 558398382) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451443 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451443], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500623, 558398383) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500623) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500623 AND "spree_option_types"."id" = 935339138 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500623) ORDER BY position DESC LIMIT 1 SQL (34.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339138], ["position", 1], ["product_id", 1060500623], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339138) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339138], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.354420' WHERE "spree_products"."id" = 1060500623 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500623], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.355594' WHERE "spree_products"."id" = 1060500623  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589466, 979459997) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339138) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339138], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.364039' WHERE "spree_products"."id" = 1060500623 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500623], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.365248' WHERE "spree_products"."id" = 1060500623  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589467, 979459998) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339138) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339138], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.369150' WHERE "spree_products"."id" = 1060500623 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500623], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.370293' WHERE "spree_products"."id" = 1060500623  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589468, 979459999) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500623]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500623) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589466 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589467 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589468 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500623) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.383361' WHERE "spree_products"."id" = 1060500623  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589466 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.384320' WHERE "spree_products"."id" = 1060500623 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.385345' WHERE "spree_products"."id" = 1060500623  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589467 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.386355' WHERE "spree_products"."id" = 1060500623 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500623 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.387206' WHERE "spree_products"."id" = 1060500623  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589468 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.387885' WHERE "spree_products"."id" = 1060500623 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500623) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500623 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:31.389819' WHERE "spree_products"."id" = 1060500623 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500623 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.395825' WHERE "spree_products"."id" = 1060500624 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500624], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.397410' WHERE "spree_products"."id" = 1060500624  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589469 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.398546' WHERE "spree_products"."id" = 1060500624  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500624  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834912], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500624, "updated_at" = '2012-10-15 15:27:31.403815' WHERE "spree_product_properties"."id" = 1073273148 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500624) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451442 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500624 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500624, 558398382) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451444 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451444], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500624, 558398384) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451442 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398382 AND "spree_taxons"."taxonomy_id" = 854451442 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398382]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398382], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451442], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398382]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398385]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398385 THEN 558398382 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398382]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398385]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398385 AND "spree_taxons"."taxonomy_id" = 854451442 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398385]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398385], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451442], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398385]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398386]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398386 THEN 558398385 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398385]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398386]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500624, 558398385)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500624, 558398386) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500624) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500624 AND "spree_option_types"."id" = 935339138 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500624) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339138], ["position", 1], ["product_id", 1060500624], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.435421' WHERE "spree_products"."id" = 1060500624 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500624], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.436832' WHERE "spree_products"."id" = 1060500624  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589470, 979459997) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.440222' WHERE "spree_products"."id" = 1060500624 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500624], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.441421' WHERE "spree_products"."id" = 1060500624  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589471, 979459998) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.443943' WHERE "spree_products"."id" = 1060500624 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500624], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.445159' WHERE "spree_products"."id" = 1060500624  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589472, 979459999) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500624]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500624) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589470 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589471 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589472 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500624) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.457799' WHERE "spree_products"."id" = 1060500624  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589470 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.458991' WHERE "spree_products"."id" = 1060500624 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.460004' WHERE "spree_products"."id" = 1060500624  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589471 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.461184' WHERE "spree_products"."id" = 1060500624 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500624 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.462280' WHERE "spree_products"."id" = 1060500624  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589472 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.462947' WHERE "spree_products"."id" = 1060500624 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500624) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500624 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:31.465145' WHERE "spree_products"."id" = 1060500624 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500624 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.471663' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.472732' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589473 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.473824' WHERE "spree_products"."id" = 1060500625  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500625  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834913], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500625, "updated_at" = '2012-10-15 15:27:31.479992' WHERE "spree_product_properties"."id" = 1073273149 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834912], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500625, "updated_at" = '2012-10-15 15:27:31.481975' WHERE "spree_product_properties"."id" = 1073273150 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834914], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500625, "updated_at" = '2012-10-15 15:27:31.486938' WHERE "spree_product_properties"."id" = 1073273151 Created New ProductProperty # Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500625) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451445 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451445], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500625 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500625, 558398387) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451442 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398382 AND "spree_taxons"."taxonomy_id" = 854451442 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398382]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398382], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451442], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398382]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398388]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398388 THEN 558398382 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398382]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398388]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500625, 558398388)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500625, 558398382) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500625) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500625 AND "spree_option_types"."id" = 935339138 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500625) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339138], ["position", 1], ["product_id", 1060500625], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.509216' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.510355' WHERE "spree_products"."id" = 1060500625  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589474, 979459997) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.512321' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.513074' WHERE "spree_products"."id" = 1060500625  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589475, 979459998) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339138 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.515269' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.516245' WHERE "spree_products"."id" = 1060500625  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589476, 979459999) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500625]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500625 AND "spree_option_types"."id" = 935339139 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500625) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339139], ["position", 2], ["product_id", 1060500625], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339139 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339139) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339139], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.525647' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.526684' WHERE "spree_products"."id" = 1060500625  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589477, 979460000) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339139 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339139) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "colour"], ["option_type_id", 935339139], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.530739' WHERE "spree_products"."id" = 1060500625 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500625], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.531721' WHERE "spree_products"."id" = 1060500625  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589478, 979460001) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500625]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500625) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589474 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.8ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589475 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589476 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589477 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589478 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500625) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.544525' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589474 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.545560' WHERE "spree_products"."id" = 1060500625 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.546309' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589475 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.546950' WHERE "spree_products"."id" = 1060500625 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.547734' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589476 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.549125' WHERE "spree_products"."id" = 1060500625 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.549983' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589477 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.550904' WHERE "spree_products"."id" = 1060500625 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500625 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.551725' WHERE "spree_products"."id" = 1060500625  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589478 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.552404' WHERE "spree_products"."id" = 1060500625 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500625) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500625 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:31.554293' WHERE "spree_products"."id" = 1060500625 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500625 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500623 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500625 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500625 SQL (2.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (4.3ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (2.6ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.679407' WHERE "spree_products"."id" = 1060500626 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500626], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.681129' WHERE "spree_products"."id" = 1060500626  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589479 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.682119' WHERE "spree_products"."id" = 1060500626  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500626  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834915], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500626, "updated_at" = '2012-10-15 15:27:31.686425' WHERE "spree_product_properties"."id" = 1073273152 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451446 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (2.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451446], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500626 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500626, 558398389) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451447 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451447], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500626, 558398390) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500626 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500626) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339140], ["position", 1], ["product_id", 1060500626], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339140) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339140], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.714369' WHERE "spree_products"."id" = 1060500626 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500626], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.715349' WHERE "spree_products"."id" = 1060500626  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589480, 979460002) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500626]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500626 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339140) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339140], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.723425' WHERE "spree_products"."id" = 1060500626 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500626], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.724195' WHERE "spree_products"."id" = 1060500626  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589481, 979460003) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500626]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500626 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339140) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339140], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.731891' WHERE "spree_products"."id" = 1060500626 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500626], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.732818' WHERE "spree_products"."id" = 1060500626  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589482, 979460004) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500626]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589480 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589481 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589482 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.746810' WHERE "spree_products"."id" = 1060500626  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589480 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.747765' WHERE "spree_products"."id" = 1060500626 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.748902' WHERE "spree_products"."id" = 1060500626  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589481 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.749642' WHERE "spree_products"."id" = 1060500626 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500626 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.750477' WHERE "spree_products"."id" = 1060500626  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589482 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.751128' WHERE "spree_products"."id" = 1060500626 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500626) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500626 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:31.753425' WHERE "spree_products"."id" = 1060500626 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500626 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.759837' WHERE "spree_products"."id" = 1060500627 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500627], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.760818' WHERE "spree_products"."id" = 1060500627  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589483 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.761993' WHERE "spree_products"."id" = 1060500627  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500627  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834916], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500627, "updated_at" = '2012-10-15 15:27:31.766947' WHERE "spree_product_properties"."id" = 1073273153 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451446 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500627 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500627, 558398389) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451448 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451448], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500627, 558398391) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451446 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398389 AND "spree_taxons"."taxonomy_id" = 854451446 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398389]] SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398389], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451446], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398389]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398392]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398392 THEN 558398389 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398389]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398392]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398392 AND "spree_taxons"."taxonomy_id" = 854451446 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398392]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398392], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451446], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398392]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398393]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398393 THEN 558398392 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398392]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398393]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500627, 558398392)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500627, 558398393) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500627 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500627) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339140], ["position", 1], ["product_id", 1060500627], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.841264' WHERE "spree_products"."id" = 1060500627 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500627], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.842329' WHERE "spree_products"."id" = 1060500627  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589484, 979460002) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500627]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500627 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.848215' WHERE "spree_products"."id" = 1060500627 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500627], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.849414' WHERE "spree_products"."id" = 1060500627  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589485, 979460003) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500627]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500627 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.855261' WHERE "spree_products"."id" = 1060500627 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500627], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.857050' WHERE "spree_products"."id" = 1060500627  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589486, 979460004) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500627]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589484 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589485 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589486 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.872028' WHERE "spree_products"."id" = 1060500627  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589484 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.873114' WHERE "spree_products"."id" = 1060500627 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.874039' WHERE "spree_products"."id" = 1060500627  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589485 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.874644' WHERE "spree_products"."id" = 1060500627 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500627 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.875773' WHERE "spree_products"."id" = 1060500627  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589486 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.876763' WHERE "spree_products"."id" = 1060500627 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500627) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500627 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:31.878751' WHERE "spree_products"."id" = 1060500627 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500627 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.886316' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.887275' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589487 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.888427' WHERE "spree_products"."id" = 1060500628  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500628  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834917], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500628, "updated_at" = '2012-10-15 15:27:31.893277' WHERE "spree_product_properties"."id" = 1073273154 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834916], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500628, "updated_at" = '2012-10-15 15:27:31.895894' WHERE "spree_product_properties"."id" = 1073273155 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["product_id", nil], ["property_id", 905834918], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500628, "updated_at" = '2012-10-15 15:27:31.898896' WHERE "spree_product_properties"."id" = 1073273156 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451449 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451449], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500628 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500628, 558398394) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451446 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398389 AND "spree_taxons"."taxonomy_id" = 854451446 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398389]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398389], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451446], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398389]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398395]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398395 THEN 558398389 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398389]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398395]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500628, 558398395)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500628, 558398389) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500628 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500628) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339140], ["position", 1], ["product_id", 1060500628], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.922427' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.923418' WHERE "spree_products"."id" = 1060500628  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589488, 979460002) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500628]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500628 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.929956' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.930745' WHERE "spree_products"."id" = 1060500628  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589489, 979460003) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500628]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500628 AND "spree_option_types"."id" = 935339140 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339140 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.937284' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.938148' WHERE "spree_products"."id" = 1060500628  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589490, 979460004) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500628]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500628 AND "spree_option_types"."id" = 935339141 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500628) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["option_type_id", 935339141], ["position", 2], ["product_id", 1060500628], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339141 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339141) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339141], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.948827' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.949810' WHERE "spree_products"."id" = 1060500628  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589491, 979460005) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500628]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500628 AND "spree_option_types"."id" = 935339141 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339141 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339141) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00], ["name", "colour"], ["option_type_id", 935339141], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:31 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.959029' WHERE "spree_products"."id" = 1060500628 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500628], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.960014' WHERE "spree_products"."id" = 1060500628  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589492, 979460006) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500628]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589488 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589489 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589490 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589491 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589492 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.974768' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589488 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.975757' WHERE "spree_products"."id" = 1060500628 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.977089' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589489 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.977969' WHERE "spree_products"."id" = 1060500628 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.978760' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589490 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.979408' WHERE "spree_products"."id" = 1060500628 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.980423' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589491 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.981185' WHERE "spree_products"."id" = 1060500628 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500628 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.982582' WHERE "spree_products"."id" = 1060500628  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589492 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:31.983334' WHERE "spree_products"."id" = 1060500628 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500628) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500628 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:31.985681' WHERE "spree_products"."id" = 1060500628 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500628 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500626 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500628 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500628 SQL (2.1ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.3ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.8ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (3.0ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.2ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.8ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (4.5ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451450 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451450], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (4.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451450], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.7ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.342997' WHERE "spree_products"."id" = 1060500629 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500629], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.344885' WHERE "spree_products"."id" = 1060500629  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589493 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.347137' WHERE "spree_products"."id" = 1060500629  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500629  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834919], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500629, "updated_at" = '2012-10-15 15:27:32.352344' WHERE "spree_product_properties"."id" = 1073273157 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500629) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451450 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500629 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500629, 558398396) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451451 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451451], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500629, 558398398) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500629) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500629 AND "spree_option_types"."id" = 935339142 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500629) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339142], ["position", 1], ["product_id", 1060500629], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339142) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339142], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.374085' WHERE "spree_products"."id" = 1060500629 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500629], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.375236' WHERE "spree_products"."id" = 1060500629  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589494, 979460007) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339142) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339142], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.380857' WHERE "spree_products"."id" = 1060500629 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500629], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.381856' WHERE "spree_products"."id" = 1060500629  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589495, 979460008) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339142) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339142], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.385388' WHERE "spree_products"."id" = 1060500629 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500629], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.386250' WHERE "spree_products"."id" = 1060500629  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589496, 979460009) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500629]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500629) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589494 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589495 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589496 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500629) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.396941' WHERE "spree_products"."id" = 1060500629  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589494 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.397957' WHERE "spree_products"."id" = 1060500629 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.398770' WHERE "spree_products"."id" = 1060500629  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589495 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.399352' WHERE "spree_products"."id" = 1060500629 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500629 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.400377' WHERE "spree_products"."id" = 1060500629  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589496 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.401137' WHERE "spree_products"."id" = 1060500629 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500629) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:32.403205' WHERE "spree_products"."id" = 1060500629 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500629 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.409698' WHERE "spree_products"."id" = 1060500630 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500630], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.411086' WHERE "spree_products"."id" = 1060500630  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589497 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.412335' WHERE "spree_products"."id" = 1060500630  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500630  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834920], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500630, "updated_at" = '2012-10-15 15:27:32.416855' WHERE "spree_product_properties"."id" = 1073273158 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500630) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451450 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500630 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500630, 558398396) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451452 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451452], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500630, 558398399) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451450 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398396 AND "spree_taxons"."taxonomy_id" = 854451450 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398396]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398396], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451450], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398396]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398400]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398400 THEN 558398396 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398396]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398400]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398400 AND "spree_taxons"."taxonomy_id" = 854451450 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398400]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398400], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451450], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398400]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398401]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398401 THEN 558398400 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398400]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398401]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500630, 558398400)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500630, 558398401) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500630) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500630 AND "spree_option_types"."id" = 935339142 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500630) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339142], ["position", 1], ["product_id", 1060500630], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.444434' WHERE "spree_products"."id" = 1060500630 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500630], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.445841' WHERE "spree_products"."id" = 1060500630  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589498, 979460007) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.447810' WHERE "spree_products"."id" = 1060500630 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500630], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.448715' WHERE "spree_products"."id" = 1060500630  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589499, 979460008) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.450809' WHERE "spree_products"."id" = 1060500630 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500630], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.451762' WHERE "spree_products"."id" = 1060500630  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589500, 979460009) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500630]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500630) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589498 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589499 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589500 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500630) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.465100' WHERE "spree_products"."id" = 1060500630  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589498 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.466177' WHERE "spree_products"."id" = 1060500630 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.467163' WHERE "spree_products"."id" = 1060500630  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589499 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.467887' WHERE "spree_products"."id" = 1060500630 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500630 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.468784' WHERE "spree_products"."id" = 1060500630  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589500 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.469773' WHERE "spree_products"."id" = 1060500630 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500630) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:32.471847' WHERE "spree_products"."id" = 1060500630 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500630 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.478522' WHERE "spree_products"."id" = 1060500631 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.479719' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589501 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.480630' WHERE "spree_products"."id" = 1060500631  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500631  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834921], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500631, "updated_at" = '2012-10-15 15:27:32.487079' WHERE "spree_product_properties"."id" = 1073273159 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834920], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500631, "updated_at" = '2012-10-15 15:27:32.488803' WHERE "spree_product_properties"."id" = 1073273160 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834922], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500631, "updated_at" = '2012-10-15 15:27:32.491414' WHERE "spree_product_properties"."id" = 1073273161 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500631) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451453 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451453], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500631 Product assigned to Taxons : ["Drawings"]  (0.4ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500631, 558398402) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451450 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398396 AND "spree_taxons"."taxonomy_id" = 854451450 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398396]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398396], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451450], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398396]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398403]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398403 THEN 558398396 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398396]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398403]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500631, 558398403)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500631, 558398396) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500631) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500631 AND "spree_option_types"."id" = 935339142 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500631) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339142], ["position", 1], ["product_id", 1060500631], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.513294' WHERE "spree_products"."id" = 1060500631 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.514287' WHERE "spree_products"."id" = 1060500631  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589502, 979460007) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.516940' WHERE "spree_products"."id" = 1060500631 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.518004' WHERE "spree_products"."id" = 1060500631  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589503, 979460008) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339142 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.520284' WHERE "spree_products"."id" = 1060500631 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.521351' WHERE "spree_products"."id" = 1060500631  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589504, 979460009) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500631]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500631 AND "spree_option_types"."id" = 935339143 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500631) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339143], ["position", 2], ["product_id", 1060500631], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339143 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339143) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339143], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.531991' WHERE "spree_products"."id" = 1060500631 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.533041' WHERE "spree_products"."id" = 1060500631  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589505, 979460010) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339143 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339143) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "colour"], ["option_type_id", 935339143], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.537615' WHERE "spree_products"."id" = 1060500631 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500631], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.538795' WHERE "spree_products"."id" = 1060500631  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589506, 979460011) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500631]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500631) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589502 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589503 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589504 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589505 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589506 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500631) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.553310' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589502 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.554384' WHERE "spree_products"."id" = 1060500631 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.555323' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589503 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.556210' WHERE "spree_products"."id" = 1060500631 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.557305' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589504 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.558093' WHERE "spree_products"."id" = 1060500631 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.559074' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589505 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.559885' WHERE "spree_products"."id" = 1060500631 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500631 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.560776' WHERE "spree_products"."id" = 1060500631  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589506 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.561417' WHERE "spree_products"."id" = 1060500631 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500631) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:32.565822' WHERE "spree_products"."id" = 1060500631 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500631 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.6ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500630 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500631 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500629 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500629 ORDER BY spree_option_types.position Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589494 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589495 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339142 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589496 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (2.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451454 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451454], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (2.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451454], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (2.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 0 rows  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.700770' WHERE "spree_products"."id" = 1060500632 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500632], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.701770' WHERE "spree_products"."id" = 1060500632  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589507 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.703469' WHERE "spree_products"."id" = 1060500632  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500632  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834923], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500632, "updated_at" = '2012-10-15 15:27:32.708855' WHERE "spree_product_properties"."id" = 1073273162 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451454 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500632 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500632, 558398404) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451455 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451455], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500632, 558398406) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500632 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500632) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339144], ["position", 1], ["product_id", 1060500632], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339144) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339144], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.734416' WHERE "spree_products"."id" = 1060500632 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500632], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.735764' WHERE "spree_products"."id" = 1060500632  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589508, 979460012) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500632]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500632 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339144) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339144], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.744647' WHERE "spree_products"."id" = 1060500632 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500632], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.745763' WHERE "spree_products"."id" = 1060500632  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589509, 979460013) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500632]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500632 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339144) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339144], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.753689' WHERE "spree_products"."id" = 1060500632 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500632], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.754798' WHERE "spree_products"."id" = 1060500632  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589510, 979460014) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500632]] Current value to assign : Current value to assign : Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589508 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589509 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589510 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.769080' WHERE "spree_products"."id" = 1060500632  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589508 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.769976' WHERE "spree_products"."id" = 1060500632 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.770958' WHERE "spree_products"."id" = 1060500632  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589509 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.772055' WHERE "spree_products"."id" = 1060500632 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500632 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.773017' WHERE "spree_products"."id" = 1060500632  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589510 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.773628' WHERE "spree_products"."id" = 1060500632 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500632) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:32.775649' WHERE "spree_products"."id" = 1060500632 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500632 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.781374' WHERE "spree_products"."id" = 1060500633 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500633], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.782438' WHERE "spree_products"."id" = 1060500633  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589511 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.783722' WHERE "spree_products"."id" = 1060500633  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500633  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834924], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500633, "updated_at" = '2012-10-15 15:27:32.788409' WHERE "spree_product_properties"."id" = 1073273163 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451454 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500633 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500633, 558398404) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451456 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451456], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500633, 558398407) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451454 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398404 AND "spree_taxons"."taxonomy_id" = 854451454 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398404]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398404], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451454], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398404]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398408]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398408 THEN 558398404 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398404]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398408]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398408 AND "spree_taxons"."taxonomy_id" = 854451454 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398408]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398408], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451454], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398408]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398409]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398409 THEN 558398408 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398408]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398409]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500633, 558398408)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500633, 558398409) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500633 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500633) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339144], ["position", 1], ["product_id", 1060500633], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.823407' WHERE "spree_products"."id" = 1060500633 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500633], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.824619' WHERE "spree_products"."id" = 1060500633  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589512, 979460012) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500633]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500633 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.830990' WHERE "spree_products"."id" = 1060500633 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500633], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.832024' WHERE "spree_products"."id" = 1060500633  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589513, 979460013) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500633]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500633 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.838389' WHERE "spree_products"."id" = 1060500633 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500633], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.839435' WHERE "spree_products"."id" = 1060500633  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589514, 979460014) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500633]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589512 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589513 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589514 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.854439' WHERE "spree_products"."id" = 1060500633  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589512 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.855541' WHERE "spree_products"."id" = 1060500633 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.856486' WHERE "spree_products"."id" = 1060500633  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589513 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.857315' WHERE "spree_products"."id" = 1060500633 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500633 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.858439' WHERE "spree_products"."id" = 1060500633  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589514 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.859410' WHERE "spree_products"."id" = 1060500633 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500633) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:32.861350' WHERE "spree_products"."id" = 1060500633 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500633 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.868209' WHERE "spree_products"."id" = 1060500634 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.869371' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589515 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.870579' WHERE "spree_products"."id" = 1060500634  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500634  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834925], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500634, "updated_at" = '2012-10-15 15:27:32.875772' WHERE "spree_product_properties"."id" = 1073273164 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834924], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500634, "updated_at" = '2012-10-15 15:27:32.878427' WHERE "spree_product_properties"."id" = 1073273165 Created New ProductProperty # Spree::Product Exists (2.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["product_id", nil], ["property_id", 905834926], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500634, "updated_at" = '2012-10-15 15:27:32.884062' WHERE "spree_product_properties"."id" = 1073273166 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451457 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451457], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500634 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500634, 558398410) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451454 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398404 AND "spree_taxons"."taxonomy_id" = 854451454 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398404]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398404], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451454], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398404]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398411]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398411 THEN 558398404 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398404]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398411]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500634, 558398411)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500634, 558398404) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500634 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500634) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339144], ["position", 1], ["product_id", 1060500634], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.944437' WHERE "spree_products"."id" = 1060500634 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.945580' WHERE "spree_products"."id" = 1060500634  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589516, 979460012) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500634]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500634 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.952009' WHERE "spree_products"."id" = 1060500634 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.952926' WHERE "spree_products"."id" = 1060500634  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589517, 979460013) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500634]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500634 AND "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339144 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.959028' WHERE "spree_products"."id" = 1060500634 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.960008' WHERE "spree_products"."id" = 1060500634  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589518, 979460014) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500634]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500634 AND "spree_option_types"."id" = 935339145 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500634) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["option_type_id", 935339145], ["position", 2], ["product_id", 1060500634], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339145 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339145) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339145], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.970381' WHERE "spree_products"."id" = 1060500634 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.971441' WHERE "spree_products"."id" = 1060500634  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589519, 979460015) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500634]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500634 AND "spree_option_types"."id" = 935339145 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339145 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339145) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00], ["name", "colour"], ["option_type_id", 935339145], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:32 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.979059' WHERE "spree_products"."id" = 1060500634 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500634], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.980183' WHERE "spree_products"."id" = 1060500634  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589520, 979460016) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500634]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589516 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589517 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589518 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589519 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589520 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.993245' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589516 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.994346' WHERE "spree_products"."id" = 1060500634 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.995357' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589517 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.996257' WHERE "spree_products"."id" = 1060500634 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.997087' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589518 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.997800' WHERE "spree_products"."id" = 1060500634 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.998638' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589519 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:32.999278' WHERE "spree_products"."id" = 1060500634 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500634 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.000415' WHERE "spree_products"."id" = 1060500634  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589520 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.001145' WHERE "spree_products"."id" = 1060500634 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500634) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:33.003201' WHERE "spree_products"."id" = 1060500634 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500634 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (33.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500633 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500634 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500632 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500632 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589508 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589509 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339144 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589510 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (1.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (2.6ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451458 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451458], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (4.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451458], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants"  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.128129' WHERE "spree_products"."id" = 1060500635 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500635], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.129390' WHERE "spree_products"."id" = 1060500635  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589521 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.130843' WHERE "spree_products"."id" = 1060500635  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500635  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834927], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500635, "updated_at" = '2012-10-15 15:27:33.136117' WHERE "spree_product_properties"."id" = 1073273167 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451458 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500635 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500635, 558398412) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451459 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451459], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500635, 558398414) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500635 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500635) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339146], ["position", 1], ["product_id", 1060500635], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339146) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339146], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.160288' WHERE "spree_products"."id" = 1060500635 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500635], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.161590' WHERE "spree_products"."id" = 1060500635  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589522, 979460017) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500635]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500635 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339146) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339146], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.171399' WHERE "spree_products"."id" = 1060500635 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500635], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.176049' WHERE "spree_products"."id" = 1060500635  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589523, 979460018) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500635]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500635 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339146) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339146], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.183580' WHERE "spree_products"."id" = 1060500635 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500635], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.184567' WHERE "spree_products"."id" = 1060500635  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589524, 979460019) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500635]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589522 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589523 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589524 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.199443' WHERE "spree_products"."id" = 1060500635  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589522 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.200443' WHERE "spree_products"."id" = 1060500635 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.201691' WHERE "spree_products"."id" = 1060500635  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589523 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.202578' WHERE "spree_products"."id" = 1060500635 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500635 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.203402' WHERE "spree_products"."id" = 1060500635  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589524 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.204059' WHERE "spree_products"."id" = 1060500635 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500635) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:33.206443' WHERE "spree_products"."id" = 1060500635 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.213908' WHERE "spree_products"."id" = 1060500636 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500636], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.215044' WHERE "spree_products"."id" = 1060500636  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589525 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.216194' WHERE "spree_products"."id" = 1060500636  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500636  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834928], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500636, "updated_at" = '2012-10-15 15:27:33.221444' WHERE "spree_product_properties"."id" = 1073273168 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451458 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500636 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500636, 558398412) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451460 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451460], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500636, 558398415) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451458 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398412 AND "spree_taxons"."taxonomy_id" = 854451458 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398412]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398412], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451458], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398412]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398416]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398416 THEN 558398412 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398412]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398416]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398416 AND "spree_taxons"."taxonomy_id" = 854451458 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398416]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398416], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451458], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398416]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398417]] SQL (0.1ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398417 THEN 558398416 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398416]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398417]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500636, 558398416)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500636, 558398417) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500636 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500636) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339146], ["position", 1], ["product_id", 1060500636], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.294169' WHERE "spree_products"."id" = 1060500636 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500636], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.295445' WHERE "spree_products"."id" = 1060500636  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589526, 979460017) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500636]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500636 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.302568' WHERE "spree_products"."id" = 1060500636 SQL (2.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500636], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.351311' WHERE "spree_products"."id" = 1060500636  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589527, 979460018) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500636]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500636 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.359318' WHERE "spree_products"."id" = 1060500636 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500636], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.360605' WHERE "spree_products"."id" = 1060500636  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589528, 979460019) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500636]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589526 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589527 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589528 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.376314' WHERE "spree_products"."id" = 1060500636  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589526 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.377143' WHERE "spree_products"."id" = 1060500636 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.377808' WHERE "spree_products"."id" = 1060500636  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589527 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.381042' WHERE "spree_products"."id" = 1060500636 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500636 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.381835' WHERE "spree_products"."id" = 1060500636  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589528 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.382787' WHERE "spree_products"."id" = 1060500636 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500636) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:33.384881' WHERE "spree_products"."id" = 1060500636 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.390638' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.391693' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589529 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.392971' WHERE "spree_products"."id" = 1060500637  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500637  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834929], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500637, "updated_at" = '2012-10-15 15:27:33.397446' WHERE "spree_product_properties"."id" = 1073273169 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834928], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500637, "updated_at" = '2012-10-15 15:27:33.400661' WHERE "spree_product_properties"."id" = 1073273170 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834930], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500637, "updated_at" = '2012-10-15 15:27:33.404138' WHERE "spree_product_properties"."id" = 1073273171 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451461 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451461], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500637 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500637, 558398418) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451458 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398412 AND "spree_taxons"."taxonomy_id" = 854451458 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398412]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398412], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451458], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398412]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398419]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398419 THEN 558398412 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398412]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398419]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500637, 558398419)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500637, 558398412) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500637 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500637) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339146], ["position", 1], ["product_id", 1060500637], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.427781' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.428932' WHERE "spree_products"."id" = 1060500637  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589530, 979460017) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500637]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500637 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.434755' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.435656' WHERE "spree_products"."id" = 1060500637  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589531, 979460018) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500637]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500637 AND "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339146 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.441771' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.442655' WHERE "spree_products"."id" = 1060500637  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589532, 979460019) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500637]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500637 AND "spree_option_types"."id" = 935339147 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500637) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339147], ["position", 2], ["product_id", 1060500637], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339147 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339147) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339147], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.452340' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.453447' WHERE "spree_products"."id" = 1060500637  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589533, 979460020) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500637]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500637 AND "spree_option_types"."id" = 935339147 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339147 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339147) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "colour"], ["option_type_id", 935339147], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.461918' WHERE "spree_products"."id" = 1060500637 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500637], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.462967' WHERE "spree_products"."id" = 1060500637  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589534, 979460021) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500637]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589530 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589531 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589532 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589533 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589534 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.477858' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589530 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.478851' WHERE "spree_products"."id" = 1060500637 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.480313' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589531 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.481007' WHERE "spree_products"."id" = 1060500637 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.481862' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589532 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.482648' WHERE "spree_products"."id" = 1060500637 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.483681' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589533 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.486078' WHERE "spree_products"."id" = 1060500637 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500637 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.487212' WHERE "spree_products"."id" = 1060500637  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589534 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.488068' WHERE "spree_products"."id" = 1060500637 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500637) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:33.491154' WHERE "spree_products"."id" = 1060500637  (5.1ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500636 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500637 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500635 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500635 ORDER BY spree_option_types.position Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589522 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589523 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339146 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589524 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (1.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.7ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451462 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451462], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451462], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (1.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) begin transaction Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.555349' WHERE "spree_products"."id" = 1060500638 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500638], ["sku", "MV_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.557020' WHERE "spree_products"."id" = 1060500638  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589535 SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.558131' WHERE "spree_products"."id" = 1060500638  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500638  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500638 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500638) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339148], ["position", 1], ["product_id", 1060500638], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500638 AND "spree_option_types"."id" = 935339149 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500638) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339149], ["position", 2], ["product_id", 1060500638], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339148) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339148], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339149) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "colour"], ["option_type_id", 935339149], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.577745' WHERE "spree_products"."id" = 1060500638 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500638], ["sku", "MV_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.578898' WHERE "spree_products"."id" = 1060500638  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589536, 979460022)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589536, 979460023) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339148) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339148], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.583859' WHERE "spree_products"."id" = 1060500638 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500638], ["sku", "MV_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.584858' WHERE "spree_products"."id" = 1060500638  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589537, 979460024)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589537, 979460023) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500638]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500638) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500638 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339148) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339148], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.596573' WHERE "spree_products"."id" = 1060500638 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500638], ["sku", "MV_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.597665' WHERE "spree_products"."id" = 1060500638  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589538, 979460025) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500638]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500638) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589536 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589537 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589538 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500638) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.608318' WHERE "spree_products"."id" = 1060500638  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589536 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.609118' WHERE "spree_products"."id" = 1060500638 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.609840' WHERE "spree_products"."id" = 1060500638  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589537 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.610582' WHERE "spree_products"."id" = 1060500638 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500638 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.611662' WHERE "spree_products"."id" = 1060500638  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589538 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.612360' WHERE "spree_products"."id" = 1060500638 Saving csv row ["MV_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "mime_type:jpeg, PDF;print_type:colour", nil, "mime_type:PNG", "12|6|7"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500638) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:33.614598' WHERE "spree_products"."id" = 1060500638 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500639 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.620990' WHERE "spree_products"."id" = 1060500639 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500639], ["sku", "MV_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.622137' WHERE "spree_products"."id" = 1060500639  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589539 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.623437' WHERE "spree_products"."id" = 1060500639  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500639  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500639 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500639) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339148], ["position", 1], ["product_id", 1060500639], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500639 AND "spree_option_types"."id" = 935339149 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500639) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339149], ["position", 2], ["product_id", 1060500639], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339149) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339149], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500639 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.640113' WHERE "spree_products"."id" = 1060500639 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500639], ["sku", "MV_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.641251' WHERE "spree_products"."id" = 1060500639  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589540, 979460026)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589540, 979460022) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500639]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500639) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500639 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500639 AND "spree_option_types"."id" = 935339149 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500639 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.651061' WHERE "spree_products"."id" = 1060500639 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500639], ["sku", "MV_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.652168' WHERE "spree_products"."id" = 1060500639  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589541, 979460026)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589541, 979460025) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500639]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500639) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589540 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589541 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500639) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500639 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.661449' WHERE "spree_products"."id" = 1060500639  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589540 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.662375' WHERE "spree_products"."id" = 1060500639 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500639 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.663389' WHERE "spree_products"."id" = 1060500639  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589541 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.664215' WHERE "spree_products"."id" = 1060500639 Saving csv row ["MV_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "mime_type:jpeg;print_type:black_white", nil, "mime_type:PNG;print_type:black_white", "5|4"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500639) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500639 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-15 15:27:33.666647' WHERE "spree_products"."id" = 1060500639 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.672818' WHERE "spree_products"."id" = 1060500640 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.673807' WHERE "spree_products"."id" = 1060500640  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589542 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.675096' WHERE "spree_products"."id" = 1060500640  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500640  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500640) ORDER BY position DESC LIMIT 1 SQL (43.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339148], ["position", 1], ["product_id", 1060500640], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339149 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500640) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339149], ["position", 2], ["product_id", 1060500640], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "size"], ["position", 0], ["presentation", "Size"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339150 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500640) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339150], ["position", 3], ["product_id", 1060500640], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339150 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339150) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "large"], ["option_type_id", 935339150], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.740154' WHERE "spree_products"."id" = 1060500640 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003_1"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.741252' WHERE "spree_products"."id" = 1060500640  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589543, 979460023)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589543, 979460027)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589543, 979460022) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339149) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "sepia"], ["option_type_id", 935339149], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339150 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.746173' WHERE "spree_products"."id" = 1060500640 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.747151' WHERE "spree_products"."id" = 1060500640  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589544, 979460028)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589544, 979460027)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589544, 979460022) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500640]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.754779' WHERE "spree_products"."id" = 1060500640 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.755818' WHERE "spree_products"."id" = 1060500640  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589545, 979460025) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500640]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500640) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339148 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339148 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.762236' WHERE "spree_products"."id" = 1060500640 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.763450' WHERE "spree_products"."id" = 1060500640  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589546, 979460024) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500640]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500640 AND "spree_option_types"."id" = 935339149 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339149 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500640 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.768994' WHERE "spree_products"."id" = 1060500640 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500640], ["sku", "MV_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.770032' WHERE "spree_products"."id" = 1060500640  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589547, 979460026) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500640]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500640) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row ["MV_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNG", "mime_type:PDF|print_type:black_white", nil, "12|4|7|12"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500640) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500640 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (4.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500638 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500638 ORDER BY spree_option_types.position Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589536 Booted Spree using version 1.1.3 SQL (5.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.846263' WHERE "spree_products"."id" = 1060500641 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500641], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.847591' WHERE "spree_products"."id" = 1060500641  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589548 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.849387' WHERE "spree_products"."id" = 1060500641  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500641  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["product_id", nil], ["property_id", 905834931], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500641, "updated_at" = '2012-10-15 15:27:33.855001' WHERE "spree_product_properties"."id" = 1073273172 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451463 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451463], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500641 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500641, 558398422) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451464 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451464], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500641, 558398423) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500641 AND "spree_option_types"."id" = 935339151 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500641) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["option_type_id", 935339151], ["position", 1], ["product_id", 1060500641], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339151) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339151], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.878452' WHERE "spree_products"."id" = 1060500641 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500641], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.879765' WHERE "spree_products"."id" = 1060500641  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589549, 979460029) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339151) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339151], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.885295' WHERE "spree_products"."id" = 1060500641 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500641], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.886452' WHERE "spree_products"."id" = 1060500641  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589550, 979460030) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339151) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339151], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.889537' WHERE "spree_products"."id" = 1060500641 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500641], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.890452' WHERE "spree_products"."id" = 1060500641  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589551, 979460031) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500641]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589549 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589550 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589551 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.900965' WHERE "spree_products"."id" = 1060500641  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589549 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.902142' WHERE "spree_products"."id" = 1060500641 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.903185' WHERE "spree_products"."id" = 1060500641  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589550 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.903933' WHERE "spree_products"."id" = 1060500641 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500641 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.904803' WHERE "spree_products"."id" = 1060500641  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589551 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:33.905582' WHERE "spree_products"."id" = 1060500641 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589548 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:33 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "14/02/2011", "399.99", "320", "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500641) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:34.494699' WHERE "spree_products"."id" = 1060500641 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.505746' WHERE "spree_products"."id" = 1060500642 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500642], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.507346' WHERE "spree_products"."id" = 1060500642  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589552 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.508732' WHERE "spree_products"."id" = 1060500642  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500642  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["product_id", nil], ["property_id", 905834932], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500642, "updated_at" = '2012-10-15 15:27:34.515203' WHERE "spree_product_properties"."id" = 1073273173 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451463 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500642 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500642, 558398422) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451465 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451465], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500642, 558398424) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451466 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451466], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500642, 558398425) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500642 AND "spree_option_types"."id" = 935339151 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500642) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["option_type_id", 935339151], ["position", 1], ["product_id", 1060500642], ["updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.537930' WHERE "spree_products"."id" = 1060500642 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500642], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.538970' WHERE "spree_products"."id" = 1060500642  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589553, 979460029) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.541121' WHERE "spree_products"."id" = 1060500642 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500642], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.542103' WHERE "spree_products"."id" = 1060500642  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589554, 979460030) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.544522' WHERE "spree_products"."id" = 1060500642 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500642], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.545402' WHERE "spree_products"."id" = 1060500642  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589555, 979460031) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500642]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589553 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589554 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589555 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.555926' WHERE "spree_products"."id" = 1060500642  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589553 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.556749' WHERE "spree_products"."id" = 1060500642 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.557662' WHERE "spree_products"."id" = 1060500642  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589554 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.558434' WHERE "spree_products"."id" = 1060500642 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500642 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.559651' WHERE "spree_products"."id" = 1060500642  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589555 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:34.560625' WHERE "spree_products"."id" = 1060500642 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589552 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:34 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "14/05/2011", "100", "30", "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500642) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500642 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:39.970752' WHERE "spree_products"."id" = 1060500642 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:39.983492' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:39.985233' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589556 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:39.986659' WHERE "spree_products"."id" = 1060500643  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500643  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["product_id", nil], ["property_id", 905834933], ["updated_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500643, "updated_at" = '2012-10-15 15:27:39.994932' WHERE "spree_product_properties"."id" = 1073273174 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["product_id", nil], ["property_id", 905834932], ["updated_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500643, "updated_at" = '2012-10-15 15:27:39.997638' WHERE "spree_product_properties"."id" = 1073273175 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["product_id", nil], ["property_id", 905834934], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500643, "updated_at" = '2012-10-15 15:27:40.000804' WHERE "spree_product_properties"."id" = 1073273176 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451467 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451467], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500643 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500643, 558398426) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500643 AND "spree_option_types"."id" = 935339151 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500643) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["option_type_id", 935339151], ["position", 1], ["product_id", 1060500643], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.018858' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.019968' WHERE "spree_products"."id" = 1060500643  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589557, 979460029) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.022796' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.023771' WHERE "spree_products"."id" = 1060500643  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589558, 979460030) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339151 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.028520' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.029648' WHERE "spree_products"."id" = 1060500643  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589559, 979460031) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500643]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500643 AND "spree_option_types"."id" = 935339152 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500643) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["option_type_id", 935339152], ["position", 2], ["product_id", 1060500643], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339152 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339152) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339152], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.040195' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.041497' WHERE "spree_products"."id" = 1060500643  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589560, 979460032) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339152 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339152) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["name", "colour"], ["option_type_id", 935339152], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.046185' WHERE "spree_products"."id" = 1060500643 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500643], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.047286' WHERE "spree_products"."id" = 1060500643  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589561, 979460033) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500643]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589557 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589558 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589559 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589560 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589561 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.062501' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589557 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.063484' WHERE "spree_products"."id" = 1060500643 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.064813' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589558 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.065754' WHERE "spree_products"."id" = 1060500643 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.066813' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589559 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.067720' WHERE "spree_products"."id" = 1060500643 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.068934' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589560 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.069760' WHERE "spree_products"."id" = 1060500643 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500643 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.070794' WHERE "spree_products"."id" = 1060500643  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589561 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:40.071529' WHERE "spree_products"."id" = 1060500643 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589556 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:40 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "01/07/2012", "50.34", "23.34", "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500643) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500643 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:42.234349' WHERE "spree_products"."id" = 1060500643  (221.9ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500641 AND ("spree_variants".is_master = 't') LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589548) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500641)) SQL (315.8ms) DELETE FROM "spree_products" SQL (107.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (316.3ms) DELETE FROM "spree_option_types" SQL (317.0ms) DELETE FROM "spree_option_values" SQL (107.4ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.7ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (109.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:43 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:43 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:43.984767' WHERE "spree_products"."id" = 1060500644 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:43.986229' WHERE "spree_products"."id" = 1060500644  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589562 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.095505' WHERE "spree_products"."id" = 1060500644  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500644  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["product_id", nil], ["property_id", 905834935], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500644, "updated_at" = '2012-10-15 15:27:44.101579' WHERE "spree_product_properties"."id" = 1073273177 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451468], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500644 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500644, 558398427) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451469 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451469], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500644, 558398428) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500644 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500644) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500644], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339153], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.129107' WHERE "spree_products"."id" = 1060500644 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.130275' WHERE "spree_products"."id" = 1060500644  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589563, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339153], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.134537' WHERE "spree_products"."id" = 1060500644 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.135386' WHERE "spree_products"."id" = 1060500644  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589564, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339153], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.138580' WHERE "spree_products"."id" = 1060500644 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.139754' WHERE "spree_products"."id" = 1060500644  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589565, 979460036) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500644]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589563 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589564 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589565 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.151580' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589563 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.152580' WHERE "spree_products"."id" = 1060500644 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.153629' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589564 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.154397' WHERE "spree_products"."id" = 1060500644 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.155628' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589565 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:44.156354' WHERE "spree_products"."id" = 1060500644 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589562 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:44 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:45.858778' WHERE "spree_products"."id" = 1060500644 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500644 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.870296' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.871579' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589566 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.873304' WHERE "spree_products"."id" = 1060500645  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500645  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["product_id", nil], ["property_id", 905834936], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500645, "updated_at" = '2012-10-15 15:27:45.880246' WHERE "spree_product_properties"."id" = 1073273178 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500645 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398427) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451470 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451470], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398429) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451471 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451471], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398430) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500645 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500645) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500645], ["updated_at", Mon, 15 Oct 2012 15:27:45 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.904555' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.905768' WHERE "spree_products"."id" = 1060500645  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589567, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.908307' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.909549' WHERE "spree_products"."id" = 1060500645  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589568, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.912119' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:45.913492' WHERE "spree_products"."id" = 1060500645  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589569, 979460036) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500645]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589567 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589568 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589569 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.028206' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589567 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.029255' WHERE "spree_products"."id" = 1060500645 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.030420' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589568 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.031405' WHERE "spree_products"."id" = 1060500645 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.032526' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589569 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:46.033346' WHERE "spree_products"."id" = 1060500645 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589566 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:46 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:54.921676' WHERE "spree_products"."id" = 1060500645 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] succesfully SAVED : ID 1060500645 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.931254' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.932630' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589570 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.934270' WHERE "spree_products"."id" = 1060500646  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500646  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["product_id", nil], ["property_id", 905834937], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:54.940660' WHERE "spree_product_properties"."id" = 1073273179 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["product_id", nil], ["property_id", 905834936], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:54.942952' WHERE "spree_product_properties"."id" = 1073273180 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["product_id", nil], ["property_id", 905834938], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:54.945771' WHERE "spree_product_properties"."id" = 1073273181 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451472 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451472], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500646 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500646, 558398431) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500646 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500646) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500646], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.961159' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.962048' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589571, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.964457' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.965295' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589572, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.967676' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.968573' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589573, 979460036) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500646]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500646 AND "spree_option_types"."id" = 935339154 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500646) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["option_type_id", 935339154], ["position", 2], ["product_id", 1060500646], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339154 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339154) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339154], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.978878' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.979848' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589574, 979460037) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339154 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339154) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00], ["name", "colour"], ["option_type_id", 935339154], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:54 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.984544' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.985413' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589575, 979460038) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500646]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589571 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589572 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589573 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589574 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589575 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:54.999821' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589571 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.000701' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.001440' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589572 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.002221' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.003544' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589573 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.004508' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.005488' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589574 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.007293' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.008461' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589575 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:55.009330' WHERE "spree_products"."id" = 1060500646 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589570 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:55 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:55.862040' WHERE "spree_products"."id" = 1060500646 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500646 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (0.7ms) rollback transaction SQL (4.8ms) DELETE FROM "spree_products" SQL (0.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 0 rows  (0.9ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.023996' WHERE "spree_products"."id" = 1060500644 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.025129' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589562 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.026596' WHERE "spree_products"."id" = 1060500644  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500644  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834935], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500644, "updated_at" = '2012-10-15 15:27:56.033266' WHERE "spree_product_properties"."id" = 1073273177 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451468], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500644 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500644, 558398427) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451469 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451469], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500644, 558398428) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500644 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500644) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500644], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339153], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.061808' WHERE "spree_products"."id" = 1060500644 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.062896' WHERE "spree_products"."id" = 1060500644  (0.6ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589563, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339153], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.067546' WHERE "spree_products"."id" = 1060500644 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.068659' WHERE "spree_products"."id" = 1060500644  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589564, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339153) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339153], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.072056' WHERE "spree_products"."id" = 1060500644 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500644], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.073158' WHERE "spree_products"."id" = 1060500644  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589565, 979460036) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500644]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589563 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589564 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589565 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.084729' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589563 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.085873' WHERE "spree_products"."id" = 1060500644 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.086923' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589564 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.087686' WHERE "spree_products"."id" = 1060500644 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500644 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.089089' WHERE "spree_products"."id" = 1060500644  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589565 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.090225' WHERE "spree_products"."id" = 1060500644 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500644) LIMIT 1  (0.5ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500644 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:56.092480' WHERE "spree_products"."id" = 1060500644 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500644 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.098923' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.099873' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589566 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.100979' WHERE "spree_products"."id" = 1060500645  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500645  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834936], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500645, "updated_at" = '2012-10-15 15:27:56.106117' WHERE "spree_product_properties"."id" = 1073273178 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500645 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398427) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451470 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.5ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451470], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398429) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398427 AND "spree_taxons"."taxonomy_id" = 854451468 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398427]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398427], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451468], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398427]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398430]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398430 THEN 558398427 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398427]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398430]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398430 AND "spree_taxons"."taxonomy_id" = 854451468 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398430]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398430], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451468], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398430]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398431]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398431 THEN 558398430 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398430]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398431]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398430)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500645, 558398431) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500645 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500645) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500645], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.135505' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.136382' WHERE "spree_products"."id" = 1060500645  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589567, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.138777' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.139697' WHERE "spree_products"."id" = 1060500645  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589568, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.141865' WHERE "spree_products"."id" = 1060500645 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500645], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.142687' WHERE "spree_products"."id" = 1060500645  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589569, 979460036) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500645]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589567 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589568 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589569 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.155406' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589567 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.156570' WHERE "spree_products"."id" = 1060500645 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.157614' WHERE "spree_products"."id" = 1060500645  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589568 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.158328' WHERE "spree_products"."id" = 1060500645 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500645 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.159143' WHERE "spree_products"."id" = 1060500645  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589569 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.159870' WHERE "spree_products"."id" = 1060500645 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500645) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500645 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:56.161874' WHERE "spree_products"."id" = 1060500645 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500645 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.168336' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.169394' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589570 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.170350' WHERE "spree_products"."id" = 1060500646  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500646  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834937], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:56.175148' WHERE "spree_product_properties"."id" = 1073273179 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834936], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", "Example free value"]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:56.177499' WHERE "spree_product_properties"."id" = 1073273180 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834938], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500646, "updated_at" = '2012-10-15 15:27:56.180078' WHERE "spree_product_properties"."id" = 1073273181 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451471 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.7ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451471], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500646 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500646, 558398432) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451468 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398427 AND "spree_taxons"."taxonomy_id" = 854451468 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398427]] SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398427], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451468], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398427]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398433]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398433 THEN 558398427 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398427]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398433]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500646, 558398433)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500646, 558398427) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500646 AND "spree_option_types"."id" = 935339153 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500646) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339153], ["position", 1], ["product_id", 1060500646], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.203818' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.204731' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589571, 979460034) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.207442' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.208355' WHERE "spree_products"."id" = 1060500646  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589572, 979460035) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339153 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.210704' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.212384' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589573, 979460036) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500646]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500646 AND "spree_option_types"."id" = 935339154 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500646) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339154], ["position", 2], ["product_id", 1060500646], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339154 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339154) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339154], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.221548' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.222689' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589574, 979460037) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339154 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339154) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "colour"], ["option_type_id", 935339154], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.226818' WHERE "spree_products"."id" = 1060500646 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500646], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.227720' WHERE "spree_products"."id" = 1060500646  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589575, 979460038) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500646]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589571 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589572 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589573 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589574 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589575 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.240446' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589571 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.241499' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.242605' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589572 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.243307' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.244131' WHERE "spree_products"."id" = 1060500646  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589573 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.244873' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.245700' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589574 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.246731' WHERE "spree_products"."id" = 1060500646 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500646 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.247439' WHERE "spree_products"."id" = 1060500646  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589575 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.248196' WHERE "spree_products"."id" = 1060500646 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500646) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:56.250136' WHERE "spree_products"."id" = 1060500646 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500646 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (7.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500646 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589570) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500646)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (3.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 0 rows  (1.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.373364' WHERE "spree_products"."id" = 1060500647 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500647], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.374830' WHERE "spree_products"."id" = 1060500647  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589576 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.375994' WHERE "spree_products"."id" = 1060500647  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500647  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834939], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500647, "updated_at" = '2012-10-15 15:27:56.381848' WHERE "spree_product_properties"."id" = 1073273182 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500647) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451472 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451472], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500647 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500647, 558398434) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451473 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451473], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500647, 558398435) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500647) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500647 AND "spree_option_types"."id" = 935339155 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500647) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339155], ["position", 1], ["product_id", 1060500647], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339155) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339155], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.404512' WHERE "spree_products"."id" = 1060500647 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500647], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.405911' WHERE "spree_products"."id" = 1060500647  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589577, 979460039) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339155) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339155], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.410644' WHERE "spree_products"."id" = 1060500647 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500647], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.411502' WHERE "spree_products"."id" = 1060500647  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589578, 979460040) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339155) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339155], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.417029' WHERE "spree_products"."id" = 1060500647 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500647], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.418199' WHERE "spree_products"."id" = 1060500647  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589579, 979460041) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500647]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500647) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589577 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589578 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589579 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500647) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.428475' WHERE "spree_products"."id" = 1060500647  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589577 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.429298' WHERE "spree_products"."id" = 1060500647 Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.466554' WHERE "spree_products"."id" = 1060500647  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589578 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.468919' WHERE "spree_products"."id" = 1060500647 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500647 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.469976' WHERE "spree_products"."id" = 1060500647  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589579 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.470734' WHERE "spree_products"."id" = 1060500647 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500647) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500647 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:56.472906' WHERE "spree_products"."id" = 1060500647 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500647 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.479157' WHERE "spree_products"."id" = 1060500648 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500648], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.480455' WHERE "spree_products"."id" = 1060500648  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589580 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.481659' WHERE "spree_products"."id" = 1060500648  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500648  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834940], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500648, "updated_at" = '2012-10-15 15:27:56.487262' WHERE "spree_product_properties"."id" = 1073273183 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500648) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451472 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500648 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500648, 558398434) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451474 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451474], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500648, 558398436) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451472 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398434 AND "spree_taxons"."taxonomy_id" = 854451472 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398434]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398434], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451472], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398434]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398437]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398437 THEN 558398434 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398434]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398437]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398437 AND "spree_taxons"."taxonomy_id" = 854451472 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398437]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398437], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451472], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398437]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398438]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398438 THEN 558398437 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398437]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398438]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500648, 558398437)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500648, 558398438) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500648) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500648 AND "spree_option_types"."id" = 935339155 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500648) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339155], ["position", 1], ["product_id", 1060500648], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.516821' WHERE "spree_products"."id" = 1060500648 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500648], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.517802' WHERE "spree_products"."id" = 1060500648  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589581, 979460039) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.519786' WHERE "spree_products"."id" = 1060500648 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500648], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.520661' WHERE "spree_products"."id" = 1060500648  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589582, 979460040) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.522725' WHERE "spree_products"."id" = 1060500648 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500648], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.524159' WHERE "spree_products"."id" = 1060500648  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589583, 979460041) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500648]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500648) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589581 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589582 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589583 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500648) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.536518' WHERE "spree_products"."id" = 1060500648  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589581 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.537463' WHERE "spree_products"."id" = 1060500648 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.538545' WHERE "spree_products"."id" = 1060500648  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589582 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.539274' WHERE "spree_products"."id" = 1060500648 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500648 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.540092' WHERE "spree_products"."id" = 1060500648  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589583 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.540875' WHERE "spree_products"."id" = 1060500648 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500648) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500648 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:27:56.542972' WHERE "spree_products"."id" = 1060500648 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500648 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.549457' WHERE "spree_products"."id" = 1060500649 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.550464' WHERE "spree_products"."id" = 1060500649  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589584 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.551435' WHERE "spree_products"."id" = 1060500649  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500649  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834941], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500649, "updated_at" = '2012-10-15 15:27:56.556562' WHERE "spree_product_properties"."id" = 1073273184 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834940], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500649, "updated_at" = '2012-10-15 15:27:56.558899' WHERE "spree_product_properties"."id" = 1073273185 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834942], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500649, "updated_at" = '2012-10-15 15:27:56.561654' WHERE "spree_product_properties"."id" = 1073273186 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500649) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451475 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451475], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500649 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500649, 558398439) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451472 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398434 AND "spree_taxons"."taxonomy_id" = 854451472 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398434]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398434], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451472], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398434]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398440]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398440 THEN 558398434 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398434]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398440]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500649, 558398440)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500649, 558398434) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500649) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500649 AND "spree_option_types"."id" = 935339155 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500649) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339155], ["position", 1], ["product_id", 1060500649], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.589096' WHERE "spree_products"."id" = 1060500649 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.590342' WHERE "spree_products"."id" = 1060500649  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589585, 979460039) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.592512' WHERE "spree_products"."id" = 1060500649 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.593938' WHERE "spree_products"."id" = 1060500649  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589586, 979460040) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339155 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.596260' WHERE "spree_products"."id" = 1060500649 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.597236' WHERE "spree_products"."id" = 1060500649  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589587, 979460041) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500649]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500649 AND "spree_option_types"."id" = 935339156 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500649) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339156], ["position", 2], ["product_id", 1060500649], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339156 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339156) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339156], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.607218' WHERE "spree_products"."id" = 1060500649 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.608992' WHERE "spree_products"."id" = 1060500649  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589588, 979460042) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339156 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339156) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "colour"], ["option_type_id", 935339156], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.613104' WHERE "spree_products"."id" = 1060500649 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500649], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.614006' WHERE "spree_products"."id" = 1060500649  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589589, 979460043) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500649]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500649) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589585 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589586 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589587 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589588 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589589 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500649) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.627413' WHERE "spree_products"."id" = 1060500649  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589585 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.628698' WHERE "spree_products"."id" = 1060500649 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.629601' WHERE "spree_products"."id" = 1060500649  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589586 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.630246' WHERE "spree_products"."id" = 1060500649 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.631078' WHERE "spree_products"."id" = 1060500649  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589587 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.632138' WHERE "spree_products"."id" = 1060500649 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.633069' WHERE "spree_products"."id" = 1060500649  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589588 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.633820' WHERE "spree_products"."id" = 1060500649 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500649 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.634624' WHERE "spree_products"."id" = 1060500649  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589589 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.635455' WHERE "spree_products"."id" = 1060500649 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500649) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:27:56.637543' WHERE "spree_products"."id" = 1060500649 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500649 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.7ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500649 AND ("spree_variants".is_master = 't') LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589584) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500649)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (4.6ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.753699' WHERE "spree_products"."id" = 1060500650 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.755048' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589590 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.756247' WHERE "spree_products"."id" = 1060500650  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500650  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["product_id", nil], ["property_id", 905834943], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["value", nil]]  (0.4ms) UPDATE "spree_product_properties" SET "product_id" = 1060500650, "updated_at" = '2012-10-15 15:27:56.761443' WHERE "spree_product_properties"."id" = 1073273187 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451476 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451476], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500650 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500650, 558398441) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451477 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451477], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500650, 558398442) Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500650 AND "spree_option_types"."id" = 935339157 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500650) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["option_type_id", 935339157], ["position", 1], ["product_id", 1060500650], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339157], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.782738' WHERE "spree_products"."id" = 1060500650 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.783993' WHERE "spree_products"."id" = 1060500650  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589591, 979460044) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339157], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.788046' WHERE "spree_products"."id" = 1060500650 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.789126' WHERE "spree_products"."id" = 1060500650  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589592, 979460045) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339157], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.792538' WHERE "spree_products"."id" = 1060500650 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.793531' WHERE "spree_products"."id" = 1060500650  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589593, 979460046) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500650]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589591 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589592 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589593 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.804605' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589591 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.805654' WHERE "spree_products"."id" = 1060500650 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.806347' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589592 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.807738' WHERE "spree_products"."id" = 1060500650 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.809246' WHERE "spree_products"."id" = 1060500650  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589593 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:56.810125' WHERE "spree_products"."id" = 1060500650 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589590 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:56 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::Asset Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:57 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::Asset Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:58 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:27:59.172716' WHERE "spree_products"."id" = 1060500650 Row ["MULTI_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg", "fixtures/images/DEMO_001_ror_bag.jpeg:more random alt text", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500650 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.186101' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.187636' WHERE "spree_products"."id" = 1060500651  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589594 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.189198' WHERE "spree_products"."id" = 1060500651  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500651  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["product_id", nil], ["property_id", 905834944], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500651, "updated_at" = '2012-10-15 15:27:59.197242' WHERE "spree_product_properties"."id" = 1073273188 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451476 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500651 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398441) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451478], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398443) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451479 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451479], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398444) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500651 AND "spree_option_types"."id" = 935339157 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500651) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["option_type_id", 935339157], ["position", 1], ["product_id", 1060500651], ["updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.222227' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.223806' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589595, 979460044) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.226277' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.227374' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589596, 979460045) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.230345' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.231369' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589597, 979460046) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500651]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589595 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589596 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589597 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.243548' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589595 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.244569' WHERE "spree_products"."id" = 1060500651 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.245581' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589596 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.246383' WHERE "spree_products"."id" = 1060500651 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.247459' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589597 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:27:59.249869' WHERE "spree_products"."id" = 1060500651 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589594 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:27:59 UTC +00:00], ["attachment_width", 2424], ["position", 4], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:28:06 UTC +00:00], ["attachment_width", 240], ["position", 5], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign :  (0.9ms) rollback transaction Booted Spree using version 1.1.3 SQL (10.5ms) DELETE FROM "spree_products" SQL (0.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (3.7ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (3.6ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (3.6ms) DELETE FROM "spree_taxonomies" SQL (2.5ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451476 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451476], ["updated_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00]]  (1.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451476], ["updated_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) begin transaction  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451476], ["updated_at", Mon, 15 Oct 2012 15:28:07 UTC +00:00]]  (1.9ms) commit transaction Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (73.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451477 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451477], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451477], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]]  (2.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451477], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]]  (1.8ms) commit transaction Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons"  Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451477 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451477 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451477 LIMIT 1 Booted Spree using version 1.1.3 SQL (4.8ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.1ms) DELETE FROM "spree_option_types" SQL (4.1ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451478], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]]  (10.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451478], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.5ms) UPDATE "spree_taxons" SET "parent_id" = 558398447, "updated_at" = '2012-10-15 15:28:08.369349' WHERE "spree_taxons"."id" = 558398448 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398447]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398448]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398448 THEN 558398447 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398447]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398448]]  (2.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398447 ORDER BY "lft" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.410581' WHERE "spree_products"."id" = 1060500650 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.411883' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589590 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.414313' WHERE "spree_products"."id" = 1060500650  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500650  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["product_id", nil], ["property_id", 905834943], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500650, "updated_at" = '2012-10-15 15:28:08.420883' WHERE "spree_product_properties"."id" = 1073273187 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500650 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500650, 558398447) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451479 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451479], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500650, 558398449) Current value to assign : Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500650 AND "spree_option_types"."id" = 935339157 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (96.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500650) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["option_type_id", 935339157], ["position", 1], ["product_id", 1060500650], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339157], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.547826' WHERE "spree_products"."id" = 1060500650 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.549080' WHERE "spree_products"."id" = 1060500650  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589591, 979460044) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339157], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.553212' WHERE "spree_products"."id" = 1060500650 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.554449' WHERE "spree_products"."id" = 1060500650  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589592, 979460045) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339157) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339157], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.558465' WHERE "spree_products"."id" = 1060500650 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500650], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.559885' WHERE "spree_products"."id" = 1060500650  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589593, 979460046) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500650]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589591 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589592 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589593 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.574885' WHERE "spree_products"."id" = 1060500650  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589591 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.576215' WHERE "spree_products"."id" = 1060500650 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.577626' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589592 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.578872' WHERE "spree_products"."id" = 1060500650 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.580035' WHERE "spree_products"."id" = 1060500650  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589593 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.580885' WHERE "spree_products"."id" = 1060500650 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500650) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500650 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:28:08.583833' WHERE "spree_products"."id" = 1060500650 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500650 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.683456' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.685215' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589594 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.686701' WHERE "spree_products"."id" = 1060500651  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500651  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["product_id", nil], ["property_id", 905834944], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["value", nil]]  (13.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500651, "updated_at" = '2012-10-15 15:28:08.697683' WHERE "spree_product_properties"."id" = 1073273188 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500651 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398447) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451480 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451480], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398450) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398447 AND "spree_taxons"."taxonomy_id" = 854451478 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398447]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398447], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451478], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398447]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398451]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398451 THEN 558398447 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398447]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398451]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398451 AND "spree_taxons"."taxonomy_id" = 854451478 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398451]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398451], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451478], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398451]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398452]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398452 THEN 558398451 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398451]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398452]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398451)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500651, 558398452) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500651 AND "spree_option_types"."id" = 935339157 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500651) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["option_type_id", 935339157], ["position", 1], ["product_id", 1060500651], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.852452' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.853660' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589595, 979460044) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.858346' WHERE "spree_products"."id" = 1060500651 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.860341' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589596, 979460045) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.862674' WHERE "spree_products"."id" = 1060500651 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500651], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.863707' WHERE "spree_products"."id" = 1060500651  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589597, 979460046) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500651]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589595 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589596 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589597 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.878491' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589595 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.879693' WHERE "spree_products"."id" = 1060500651 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.880942' WHERE "spree_products"."id" = 1060500651  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589596 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.881717' WHERE "spree_products"."id" = 1060500651 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.882526' WHERE "spree_products"."id" = 1060500651  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589597 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.883617' WHERE "spree_products"."id" = 1060500651 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500651) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500651 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:28:08.885607' WHERE "spree_products"."id" = 1060500651 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500651 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.973981' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.974890' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589598 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:08.976515' WHERE "spree_products"."id" = 1060500652  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500652  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["product_id", nil], ["property_id", 905834945], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500652, "updated_at" = '2012-10-15 15:28:08.981890' WHERE "spree_product_properties"."id" = 1073273189 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["product_id", nil], ["property_id", 905834944], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500652, "updated_at" = '2012-10-15 15:28:08.983890' WHERE "spree_product_properties"."id" = 1073273190 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["product_id", nil], ["property_id", 905834946], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500652, "updated_at" = '2012-10-15 15:28:08.986794' WHERE "spree_product_properties"."id" = 1073273191 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500652) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451481 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451481], ["updated_at", Mon, 15 Oct 2012 15:28:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500652 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500652, 558398453) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398447 AND "spree_taxons"."taxonomy_id" = 854451478 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500652, 558398448)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500652, 558398447) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500652) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500652 AND "spree_option_types"."id" = 935339157 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500652) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["option_type_id", 935339157], ["position", 1], ["product_id", 1060500652], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.006515' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.007799' WHERE "spree_products"."id" = 1060500652  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589599, 979460044) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.009712' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.011048' WHERE "spree_products"."id" = 1060500652  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589600, 979460045) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339157 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.013554' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.014718' WHERE "spree_products"."id" = 1060500652  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589601, 979460046) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500652]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500652 AND "spree_option_types"."id" = 935339158 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500652) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["option_type_id", 935339158], ["position", 2], ["product_id", 1060500652], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339158 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339158) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339158], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.029705' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.030715' WHERE "spree_products"."id" = 1060500652  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589602, 979460047) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339158 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339158) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "colour"], ["option_type_id", 935339158], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.034440' WHERE "spree_products"."id" = 1060500652 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500652], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.035506' WHERE "spree_products"."id" = 1060500652  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589603, 979460048) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500652]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500652) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589599 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589600 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589601 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589602 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589603 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500652) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.048479' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589599 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.049756' WHERE "spree_products"."id" = 1060500652 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.050661' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589600 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.051376' WHERE "spree_products"."id" = 1060500652 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.052206' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589601 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.052891' WHERE "spree_products"."id" = 1060500652 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.053799' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589602 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.055181' WHERE "spree_products"."id" = 1060500652 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500652 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.056211' WHERE "spree_products"."id" = 1060500652  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589603 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.057036' WHERE "spree_products"."id" = 1060500652 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500652) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500652 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:28:09.058891' WHERE "spree_products"."id" = 1060500652 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500652 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (332.3ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500650 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500650 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500651 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500651 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398447 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451478 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398451 LIMIT 1 Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398451 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398452 ORDER BY "lft" SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (3.8ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451482], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (2.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451482], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.4ms) UPDATE "spree_taxons" SET "parent_id" = 558398454, "updated_at" = '2012-10-15 15:28:09.459309' WHERE "spree_taxons"."id" = 558398455 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398454]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398455]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398455 THEN 558398454 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398454]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398455]]  (6.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398454 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.607078' WHERE "spree_products"."id" = 1060500653 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500653], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.608734' WHERE "spree_products"."id" = 1060500653  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589604 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.610249' WHERE "spree_products"."id" = 1060500653  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500653  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["product_id", nil], ["property_id", 905834947], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500653, "updated_at" = '2012-10-15 15:28:09.616146' WHERE "spree_product_properties"."id" = 1073273192 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500653 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500653, 558398454) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451483 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (48.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451483], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500653, 558398456) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500653 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500653) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["option_type_id", 935339159], ["position", 1], ["product_id", 1060500653], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339159) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339159], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.694733' WHERE "spree_products"."id" = 1060500653 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500653], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.695869' WHERE "spree_products"."id" = 1060500653  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589605, 979460049) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500653]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500653 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339159) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339159], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.704783' WHERE "spree_products"."id" = 1060500653 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500653], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.705744' WHERE "spree_products"."id" = 1060500653  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589606, 979460050) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500653]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500653 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339159) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339159], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.713402' WHERE "spree_products"."id" = 1060500653 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500653], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.714390' WHERE "spree_products"."id" = 1060500653  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589607, 979460051) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500653]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589605 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589606 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589607 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.778352' WHERE "spree_products"."id" = 1060500653  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589605 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.779587' WHERE "spree_products"."id" = 1060500653 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.780627' WHERE "spree_products"."id" = 1060500653  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589606 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.781651' WHERE "spree_products"."id" = 1060500653 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.782607' WHERE "spree_products"."id" = 1060500653  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589607 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.783478' WHERE "spree_products"."id" = 1060500653 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500653) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500653 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:28:09.785515' WHERE "spree_products"."id" = 1060500653 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500653 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.792169' WHERE "spree_products"."id" = 1060500654 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500654], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.793280' WHERE "spree_products"."id" = 1060500654  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589608 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.794391' WHERE "spree_products"."id" = 1060500654  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500654  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["product_id", nil], ["property_id", 905834948], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500654, "updated_at" = '2012-10-15 15:28:09.801286' WHERE "spree_product_properties"."id" = 1073273193 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500654 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500654, 558398454) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451484 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451484], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500654, 558398457) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398454 AND "spree_taxons"."taxonomy_id" = 854451482 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398454]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398454], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451482], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398454]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398458]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398458 THEN 558398454 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398454]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398458]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398458 AND "spree_taxons"."taxonomy_id" = 854451482 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398458]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398458], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451482], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398458]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398459]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398459 THEN 558398458 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398458]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398459]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500654, 558398458)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500654, 558398459) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500654 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500654) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00], ["option_type_id", 935339159], ["position", 1], ["product_id", 1060500654], ["updated_at", Mon, 15 Oct 2012 15:28:09 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.839893' WHERE "spree_products"."id" = 1060500654 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500654], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.842623' WHERE "spree_products"."id" = 1060500654  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589609, 979460049) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500654]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::OptionType Load (1.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500654 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.852074' WHERE "spree_products"."id" = 1060500654 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500654], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.853149' WHERE "spree_products"."id" = 1060500654  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589610, 979460050) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500654]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1 Spree::OptionType Load (111.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500654 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.974397' WHERE "spree_products"."id" = 1060500654 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500654], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.975598' WHERE "spree_products"."id" = 1060500654  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589611, 979460051) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500654]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589609 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589610 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589611 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.991105' WHERE "spree_products"."id" = 1060500654  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589609 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.992197' WHERE "spree_products"."id" = 1060500654 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.993206' WHERE "spree_products"."id" = 1060500654  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589610 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.994322' WHERE "spree_products"."id" = 1060500654 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.995308' WHERE "spree_products"."id" = 1060500654  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589611 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:09.996262' WHERE "spree_products"."id" = 1060500654 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500654) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500654 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:28:09.998519' WHERE "spree_products"."id" = 1060500654 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500654 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.006450' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.008390' WHERE "spree_products"."id" = 1060500655  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589612 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.009615' WHERE "spree_products"."id" = 1060500655  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500655  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834949], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500655, "updated_at" = '2012-10-15 15:28:10.014984' WHERE "spree_product_properties"."id" = 1073273194 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834948], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500655, "updated_at" = '2012-10-15 15:28:10.017652' WHERE "spree_product_properties"."id" = 1073273195 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834950], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500655, "updated_at" = '2012-10-15 15:28:10.021007' WHERE "spree_product_properties"."id" = 1073273196 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451485 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451485], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500655 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500655, 558398460) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398454 AND "spree_taxons"."taxonomy_id" = 854451482 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500655, 558398455)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500655, 558398454) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500655 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500655) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["option_type_id", 935339159], ["position", 1], ["product_id", 1060500655], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.039141' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.040242' WHERE "spree_products"."id" = 1060500655  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589613, 979460049) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500655]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500655 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.046588' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.047884' WHERE "spree_products"."id" = 1060500655  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589614, 979460050) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500655]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500655 AND "spree_option_types"."id" = 935339159 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339159 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.053812' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.054793' WHERE "spree_products"."id" = 1060500655  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589615, 979460051) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500655]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500655 AND "spree_option_types"."id" = 935339160 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500655) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["option_type_id", 935339160], ["position", 2], ["product_id", 1060500655], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339160 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339160) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339160], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.066576' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.067703' WHERE "spree_products"."id" = 1060500655  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589616, 979460052) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500655]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500655 AND "spree_option_types"."id" = 935339160 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339160 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339160) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "colour"], ["option_type_id", 935339160], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.186755' WHERE "spree_products"."id" = 1060500655 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500655], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.188842' WHERE "spree_products"."id" = 1060500655  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589617, 979460053) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500655]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589613 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589614 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589615 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589616 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589617 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.204260' WHERE "spree_products"."id" = 1060500655  (0.7ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589613 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.205722' WHERE "spree_products"."id" = 1060500655 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.206770' WHERE "spree_products"."id" = 1060500655  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589614 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.207581' WHERE "spree_products"."id" = 1060500655 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.209038' WHERE "spree_products"."id" = 1060500655  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589615 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.209824' WHERE "spree_products"."id" = 1060500655 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.211038' WHERE "spree_products"."id" = 1060500655  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589616 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.211927' WHERE "spree_products"."id" = 1060500655 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500655 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.212845' WHERE "spree_products"."id" = 1060500655  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589617 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.213556' WHERE "spree_products"."id" = 1060500655 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500655) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500655 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:28:10.215620' WHERE "spree_products"."id" = 1060500655 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500655 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.5ms) commit transaction Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500653 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500653 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500654 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500654 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398454 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451482 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398458 LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398458 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398459 ORDER BY "lft" SQL (3.2ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (4.8ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (3.3ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (3.1ms) DELETE FROM "spree_zones"  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451486], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451486], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) begin transaction  (0.4ms) UPDATE "spree_taxons" SET "parent_id" = 558398461, "updated_at" = '2012-10-15 15:28:10.496611' WHERE "spree_taxons"."id" = 558398462 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398461]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398462]] SQL (1.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398462 THEN 558398461 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398461]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398462]]  (5.8ms) commit transaction  (1.3ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398461 ORDER BY "lft"  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (2.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.535941' WHERE "spree_products"."id" = 1060500656 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500656], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.541171' WHERE "spree_products"."id" = 1060500656  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589618 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.543068' WHERE "spree_products"."id" = 1060500656  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500656  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (7.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834951], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500656, "updated_at" = '2012-10-15 15:28:10.559632' WHERE "spree_product_properties"."id" = 1073273197 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500656 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500656, 558398461) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451487 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451487], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500656, 558398463) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500656 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500656) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["option_type_id", 935339161], ["position", 1], ["product_id", 1060500656], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339161) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339161], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.590167' WHERE "spree_products"."id" = 1060500656 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500656], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.591242' WHERE "spree_products"."id" = 1060500656  (0.8ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589619, 979460054) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500656]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500656 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339161) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339161], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.601444' WHERE "spree_products"."id" = 1060500656 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500656], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.604121' WHERE "spree_products"."id" = 1060500656  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589620, 979460055) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500656]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500656 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339161) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339161], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.614693' WHERE "spree_products"."id" = 1060500656 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500656], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.615726' WHERE "spree_products"."id" = 1060500656  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589621, 979460056) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500656]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589619 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589620 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589621 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.634000' WHERE "spree_products"."id" = 1060500656  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589619 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.635023' WHERE "spree_products"."id" = 1060500656 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.637725' WHERE "spree_products"."id" = 1060500656  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589620 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.638511' WHERE "spree_products"."id" = 1060500656 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.639397' WHERE "spree_products"."id" = 1060500656  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589621 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.640212' WHERE "spree_products"."id" = 1060500656 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500656) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500656 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:28:10.642849' WHERE "spree_products"."id" = 1060500656 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.648658' WHERE "spree_products"."id" = 1060500657 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500657], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.649962' WHERE "spree_products"."id" = 1060500657  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589622 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.651101' WHERE "spree_products"."id" = 1060500657  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500657  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834952], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500657, "updated_at" = '2012-10-15 15:28:10.656290' WHERE "spree_product_properties"."id" = 1073273198 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500657 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500657, 558398461) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451488 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451488], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500657, 558398464) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398461 AND "spree_taxons"."taxonomy_id" = 854451486 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398461]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398461], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451486], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398461]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398465]] SQL (0.9ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398465 THEN 558398461 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398461]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398465]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398465 AND "spree_taxons"."taxonomy_id" = 854451486 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398465]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398465], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451486], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398465]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398466]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398466 THEN 558398465 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398465]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398466]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500657, 558398465)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500657, 558398466) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500657 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500657) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["option_type_id", 935339161], ["position", 1], ["product_id", 1060500657], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.690219' WHERE "spree_products"."id" = 1060500657 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500657], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.691222' WHERE "spree_products"."id" = 1060500657  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589623, 979460054) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500657]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500657 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.697477' WHERE "spree_products"."id" = 1060500657 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500657], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.698555' WHERE "spree_products"."id" = 1060500657  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589624, 979460055) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500657]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500657 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.705239' WHERE "spree_products"."id" = 1060500657 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500657], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.706188' WHERE "spree_products"."id" = 1060500657  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589625, 979460056) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500657]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589623 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589624 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589625 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.721525' WHERE "spree_products"."id" = 1060500657  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589623 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.722552' WHERE "spree_products"."id" = 1060500657 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.723612' WHERE "spree_products"."id" = 1060500657  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589624 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.724618' WHERE "spree_products"."id" = 1060500657 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.725597' WHERE "spree_products"."id" = 1060500657  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589625 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.726408' WHERE "spree_products"."id" = 1060500657 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500657) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500657 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:28:10.728603' WHERE "spree_products"."id" = 1060500657 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.734588' WHERE "spree_products"."id" = 1060500658 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.735677' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589626 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.736810' WHERE "spree_products"."id" = 1060500658  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500658  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834953], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500658, "updated_at" = '2012-10-15 15:28:10.742620' WHERE "spree_product_properties"."id" = 1073273199 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834952], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500658, "updated_at" = '2012-10-15 15:28:10.745434' WHERE "spree_product_properties"."id" = 1073273200 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["product_id", nil], ["property_id", 905834954], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500658, "updated_at" = '2012-10-15 15:28:10.748400' WHERE "spree_product_properties"."id" = 1073273201 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451489 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451489], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500658 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500658, 558398467) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398461 AND "spree_taxons"."taxonomy_id" = 854451486 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500658, 558398462)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500658, 558398461) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500658 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500658) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["option_type_id", 935339161], ["position", 1], ["product_id", 1060500658], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.767147' WHERE "spree_products"."id" = 1060500658 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.769451' WHERE "spree_products"."id" = 1060500658  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589627, 979460054) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500658]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500658 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.775976' WHERE "spree_products"."id" = 1060500658 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.776985' WHERE "spree_products"."id" = 1060500658  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589628, 979460055) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500658]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500658 AND "spree_option_types"."id" = 935339161 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339161 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.785636' WHERE "spree_products"."id" = 1060500658 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:10.786641' WHERE "spree_products"."id" = 1060500658  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589629, 979460056) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500658]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:28:10 UTC +00:00]] Spree::OptionType Exists (188.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500658 AND "spree_option_types"."id" = 935339162 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500658) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["option_type_id", 935339162], ["position", 2], ["product_id", 1060500658], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339162 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339162) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339162], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.103557' WHERE "spree_products"."id" = 1060500658 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.104609' WHERE "spree_products"."id" = 1060500658  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589630, 979460057) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500658]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500658 AND "spree_option_types"."id" = 935339162 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339162 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339162) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "colour"], ["option_type_id", 935339162], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.114349' WHERE "spree_products"."id" = 1060500658 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500658], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.115222' WHERE "spree_products"."id" = 1060500658  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589631, 979460058) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500658]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (18.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589627 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589628 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589629 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589630 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589631 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.151769' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589627 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.152629' WHERE "spree_products"."id" = 1060500658 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.183306' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589628 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.184395' WHERE "spree_products"."id" = 1060500658 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.185562' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589629 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.186423' WHERE "spree_products"."id" = 1060500658 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.187106' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589630 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.187918' WHERE "spree_products"."id" = 1060500658 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500658 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.189182' WHERE "spree_products"."id" = 1060500658  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589631 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.189918' WHERE "spree_products"."id" = 1060500658 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500658) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500658 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:28:11.192320' WHERE "spree_products"."id" = 1060500658  (8.3ms) commit transaction Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500656 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500656 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500657 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500657 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398461 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451486 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398465 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398465 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398466 ORDER BY "lft" SQL (2.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (3.5ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500659 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.267641' WHERE "spree_products"."id" = 1060500659 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500659], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (1.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.268916' WHERE "spree_products"."id" = 1060500659  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589632 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.271075' WHERE "spree_products"."id" = 1060500659  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500659 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500659 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500659  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500659 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398468 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398468]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398468], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398468]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398469]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398469 THEN 558398468 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398468]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398469]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500659 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500659, 558398469)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500659, 558398468) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500659) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451491 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451491], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500659, 558398470) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500659) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589632 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500659) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:28:11.345124' WHERE "spree_products"."id" = 1060500659  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589632 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.346766' WHERE "spree_products"."id" = 1060500659 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500659 Row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "Paintings>Landscape", "WaterColour", nil, 2] succesfully SAVED : ID 1060500659 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.7ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500660 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.353147' WHERE "spree_products"."id" = 1060500660 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500660], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.354224' WHERE "spree_products"."id" = 1060500660  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589633 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.355153' WHERE "spree_products"."id" = 1060500660  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500660 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500660 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500660  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500660 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500660 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500660, 558398468) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500660) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451492 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451492], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500660, 558398471) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500660) LIMIT 1 Spree::Taxonomy Load (0.9ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398468 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398468]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398468], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398468]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398472 THEN 558398468 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398468]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398472 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398472], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398472]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398473]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398473 THEN 558398472 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398473]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500660, 558398472)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500660, 558398473) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500660) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589633 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500660) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:28:11.390139' WHERE "spree_products"."id" = 1060500660  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589633 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.394230' WHERE "spree_products"."id" = 1060500660 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500660 Row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", 100, 30, "Paintings", "Oils", "Paintings>Nature>Landscape", 5] succesfully SAVED : ID 1060500660 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500661 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.402981' WHERE "spree_products"."id" = 1060500661 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500661], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.403920' WHERE "spree_products"."id" = 1060500661  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589634 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.404920' WHERE "spree_products"."id" = 1060500661  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500661 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500661 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (1.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500661  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500661 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451493], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398474 AND "spree_taxons"."taxonomy_id" = 854451493 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398474]] SQL (7.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398474], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451493], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398474]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398475]] SQL (2.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398475 THEN 558398474 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398474]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398475]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500661 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500661, 558398475)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500661, 558398474) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500661) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (1.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451494 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451494], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500661, 558398476) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500661) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589634 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500661) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:28:11.538357' WHERE "spree_products"."id" = 1060500661  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589634 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.540112' WHERE "spree_products"."id" = 1060500661 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500661 Row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "Drawings>Landscape", "Landscape", nil, 7] succesfully SAVED : ID 1060500661 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500662 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.547141' WHERE "spree_products"."id" = 1060500662 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500662], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.548431' WHERE "spree_products"."id" = 1060500662  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589635 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.549896' WHERE "spree_products"."id" = 1060500662  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500662 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500662 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500662  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500662 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398474 AND "spree_taxons"."taxonomy_id" = 854451493 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500662 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398475)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398474) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500662) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398468 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398472 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] SQL (1.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398472], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398472]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398477]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398477 THEN 558398472 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398472]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398477]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398477 AND "spree_taxons"."taxonomy_id" = 854451490 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398477]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398477], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451490], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398477]] Spree::Taxon Load (0.4ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398478]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398478 THEN 558398477 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398477]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398478]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398472)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398477)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398478)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500662, 558398468) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500662) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589635 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500662) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:28:11.653923' WHERE "spree_products"."id" = 1060500662  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589635 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.656112' WHERE "spree_products"."id" = 1060500662 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500662 Row ["test_ct_004", "Demo four", "blah", "2012-07-01", 0.34, 0.01, "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", 3] succesfully SAVED : ID 1060500662 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500663 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.662387' WHERE "spree_products"."id" = 1060500663 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500663], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.663923' WHERE "spree_products"."id" = 1060500663  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589636 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.664899' WHERE "spree_products"."id" = 1060500663  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500663 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500663 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500663  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500663 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398474 AND "spree_taxons"."taxonomy_id" = 854451493 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398475 AND "spree_taxons"."taxonomy_id" = 854451493 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398475]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398475], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451493], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398475]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398479]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398479 THEN 558398475 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398475]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398479]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500663 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500663, 558398475)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500663, 558398479)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500663, 558398474) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500663) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451492 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500663, 558398471) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500663) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589636 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500663) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:28:11.685146' WHERE "spree_products"."id" = 1060500663  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589636 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.686895' WHERE "spree_products"."id" = 1060500663 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500663 Row ["test_ct_005", "Demo five", "blah", "2012-07-01", 3.34, 3.01, "Drawings>Landscape>Bristol", "Oils", nil, 3] succesfully SAVED : ID 1060500663 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (13.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451491 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451492 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451494 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451490 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398468 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398468) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398472 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398472) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398472) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398468 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398472 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398477 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398478 ORDER BY "lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398477) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451493 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398475 ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398475 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398479 ORDER BY "lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398479) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451492 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451492 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398471 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451494 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451494 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398476 ORDER BY "lft" SQL (4.7ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (5.5ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.7ms) DELETE FROM "spree_product_properties" SQL (4.1ms) DELETE FROM "spree_variants" SQL (3.2ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.8ms) DELETE FROM "spree_taxonomies" SQL (3.9ms) DELETE FROM "spree_taxons"  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500664 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.915634' WHERE "spree_products"."id" = 1060500664 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500664], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.917927' WHERE "spree_products"."id" = 1060500664  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589637 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:11.919103' WHERE "spree_products"."id" = 1060500664  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500664 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500664 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500664  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500664 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (63.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398480 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398480]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398480], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398480]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398481]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398481 THEN 558398480 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398480]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398481]] Spree::Taxon Load (2.7ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500664 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500664, 558398481)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500664, 558398480) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500664) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451496 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451496], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500664, 558398482) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500664) LIMIT 1 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589637 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "Paintings>Landscape", "WaterColour", nil, "2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500664) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:28:12.017501' WHERE "spree_products"."id" = 1060500664  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589637 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.019424' WHERE "spree_products"."id" = 1060500664 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500664 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500665 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.027087' WHERE "spree_products"."id" = 1060500665 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500665], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.029519' WHERE "spree_products"."id" = 1060500665  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589638 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.030732' WHERE "spree_products"."id" = 1060500665  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500665 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500665 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500665  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500665 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500665 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500665, 558398480) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500665) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451497 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451497], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500665, 558398483) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500665) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398480 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398480]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398480], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398480]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398484 THEN 558398480 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398480]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398484 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398484], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398484]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398485]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398485 THEN 558398484 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398485]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500665, 558398484)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500665, 558398485) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500665) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589638 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", "100.00", "30.00", "Paintings", "Oils", "Paintings>Nature>Landscape", "5"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500665) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:28:12.062928' WHERE "spree_products"."id" = 1060500665  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589638 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.064873' WHERE "spree_products"."id" = 1060500665 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500665 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500666 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.071372' WHERE "spree_products"."id" = 1060500666 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500666], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.072603' WHERE "spree_products"."id" = 1060500666  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589639 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.073565' WHERE "spree_products"."id" = 1060500666  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500666 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500666 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500666  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500666 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451498], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398486 AND "spree_taxons"."taxonomy_id" = 854451498 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398486]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398486], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451498], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398486]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398487]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398487 THEN 558398486 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398486]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398487]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500666 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500666, 558398487)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500666, 558398486) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500666) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451499 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451499], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500666, 558398488) Current value to assign : Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500666) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589639 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "Drawings>Landscape", "Landscape", nil, "7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500666) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:28:12.211687' WHERE "spree_products"."id" = 1060500666  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589639 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.213176' WHERE "spree_products"."id" = 1060500666 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500666 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500667 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.219332' WHERE "spree_products"."id" = 1060500667 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500667], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.220548' WHERE "spree_products"."id" = 1060500667  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589640 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.222766' WHERE "spree_products"."id" = 1060500667  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500667 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500667 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500667  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500667 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398486 AND "spree_taxons"."taxonomy_id" = 854451498 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500667 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398487)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398486) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500667) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398480 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398484 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398484], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398484]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398489]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398489 THEN 558398484 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398484]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398489]] Spree::Taxon Load (55.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398489 AND "spree_taxons"."taxonomy_id" = 854451495 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398489]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398489], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451495], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398489]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398490]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398490 THEN 558398489 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398489]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398490]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398484)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398489)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398490)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500667, 558398480) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500667) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589640 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_004", "Demo four", "blah", "2012-07-01", "0.34", "0.01", "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500667) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:28:12.353932' WHERE "spree_products"."id" = 1060500667  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589640 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.355047' WHERE "spree_products"."id" = 1060500667 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500667 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500668 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.591313' WHERE "spree_products"."id" = 1060500668 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500668], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.594724' WHERE "spree_products"."id" = 1060500668  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589641 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.596583' WHERE "spree_products"."id" = 1060500668  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500668 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500668 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500668  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500668 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398486 AND "spree_taxons"."taxonomy_id" = 854451498 LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398487 AND "spree_taxons"."taxonomy_id" = 854451498 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398487]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398487], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451498], ["updated_at", Mon, 15 Oct 2012 15:28:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398487]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398491]] SQL (1.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398491 THEN 558398487 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398487]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398491]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500668 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500668, 558398487)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500668, 558398491)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500668, 558398486) Spree::Product Exists (2.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500668) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451497 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500668, 558398483) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500668) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589641 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_005", "Demo five", "blah", "2012-07-01", "3.34", "3.01", "Drawings>Landscape>Bristol", "Oils", nil, "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500668) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:28:12.625917' WHERE "spree_products"."id" = 1060500668  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589641 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:28:12.627935' WHERE "spree_products"."id" = 1060500668 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500668  (14.0ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451496 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451497 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451499 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451495 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398480 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398480) Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398484 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398484) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398484) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398480 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398484 LIMIT 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398489 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398490 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398489) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451498 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398487 ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398487 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398491 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398491) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451497 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451497 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398483 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451499 Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451499 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398488 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (6.2ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones" SQL (1.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones" SQL (2.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones" SQL (4.9ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones" SQL (2.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (3.8ms) DELETE FROM "spree_option_values" SQL (43.3ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (2.3ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (32.9ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (2.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.7ms) DELETE FROM "spree_zones"  (0.2ms) begin transaction  (0.0ms) commit transaction Booted Spree using version 1.1.3 SQL (4.7ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.2ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (7.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:34 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451500 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.7ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451500], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.4ms) commit transaction  (0.2ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451500], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (3.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451500], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.3ms) commit transaction ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (5.5ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.5ms) DELETE FROM "spree_option_types" SQL (3.2ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.2ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451501 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451501], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.9ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451501], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451501], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.1ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product SQL (2.6ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.2ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (20.1ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451502 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451502], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451502], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451502], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00]]  (2.4ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (4.7ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (16.6ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.2ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.3ms) commit transaction PRODUCT # MASTER: # SQL (2.7ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.7ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (0.7ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:45:35 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 19 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 19 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 20 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 20 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 21 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 21 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 22 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 22 Current value to assign : Current value to assign :  (2.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (1.6ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (5.1ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (20.8ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 23 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 24 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 25 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 26  (2.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (5.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (18.2ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (1.8ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (2.8ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.2ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500669 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.344524' WHERE "spree_products"."id" = 1060500669 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500669], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.346961' WHERE "spree_products"."id" = 1060500669  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589642 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.349286' WHERE "spree_products"."id" = 1060500669  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500669 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500669 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500669  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500669 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589642 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500669) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500669 AND "spree_option_types"."id" = 935339163 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500669) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339163], ["position", 1], ["product_id", 1060500669], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500669) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:45:36.475593' WHERE "spree_products"."id" = 1060500669  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589642 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.477239' WHERE "spree_products"."id" = 1060500669 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500669 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500669 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500670 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.484714' WHERE "spree_products"."id" = 1060500670 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500670], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.486299' WHERE "spree_products"."id" = 1060500670  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589643 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.487202' WHERE "spree_products"."id" = 1060500670  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500670 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500670 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500670  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500670 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589643 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500670) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500670 AND "spree_option_types"."id" = 935339163 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500670) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339163], ["position", 1], ["product_id", 1060500670], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500670) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:45:36.497167' WHERE "spree_products"."id" = 1060500670  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589643 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.498574' WHERE "spree_products"."id" = 1060500670 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500670 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500670 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (1.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500671 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.506201' WHERE "spree_products"."id" = 1060500671 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500671], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.507271' WHERE "spree_products"."id" = 1060500671  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589644 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.508199' WHERE "spree_products"."id" = 1060500671  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500671 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500671 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500671  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500671 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589644 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500671) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500671 AND "spree_option_types"."id" = 935339163 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500671) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339163], ["position", 1], ["product_id", 1060500671], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500671 AND "spree_option_types"."id" = 935339164 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500671) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339164], ["position", 2], ["product_id", 1060500671], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500671) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:45:36.522851' WHERE "spree_products"."id" = 1060500671  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589644 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.524219' WHERE "spree_products"."id" = 1060500671 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500671 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500671 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.9ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:45:36.533407')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:45:36.534169')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500669 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500669 ORDER BY spree_option_types.position  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500669 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500671 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500672 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.713511' WHERE "spree_products"."id" = 1060500672 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500672], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.715183' WHERE "spree_products"."id" = 1060500672  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589645 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.716966' WHERE "spree_products"."id" = 1060500672  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500672 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500672 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500672  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500672 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589645 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500672) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500672 AND "spree_option_types"."id" = 935339165 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500672) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339165], ["position", 1], ["product_id", 1060500672], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500672) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:45:36.750742' WHERE "spree_products"."id" = 1060500672  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589645 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.752336' WHERE "spree_products"."id" = 1060500672 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500672 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500673 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.759514' WHERE "spree_products"."id" = 1060500673 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500673], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.760375' WHERE "spree_products"."id" = 1060500673  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589646 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.761521' WHERE "spree_products"."id" = 1060500673  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500673 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500673 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500673  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500673 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589646 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500673) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500673 AND "spree_option_types"."id" = 935339165 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500673) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339165], ["position", 1], ["product_id", 1060500673], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500673) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:45:36.794967' WHERE "spree_products"."id" = 1060500673  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589646 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.796613' WHERE "spree_products"."id" = 1060500673 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500673 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500674 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.804783' WHERE "spree_products"."id" = 1060500674 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500674], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.805873' WHERE "spree_products"."id" = 1060500674  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589647 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.806931' WHERE "spree_products"."id" = 1060500674  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500674 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500674 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500674  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500674 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589647 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500674) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500674 AND "spree_option_types"."id" = 935339165 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500674) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339165], ["position", 1], ["product_id", 1060500674], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500674 AND "spree_option_types"."id" = 935339166 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500674) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339166], ["position", 2], ["product_id", 1060500674], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500674) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:45:36.822967' WHERE "spree_products"."id" = 1060500674  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589647 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.824330' WHERE "spree_products"."id" = 1060500674 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500674  (2.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:45:36.828828')  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:45:36.829812')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500672 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500672 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500672 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500674 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (25.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.6ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:45:36 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500675 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.960686' WHERE "spree_products"."id" = 1060500675 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500675], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.962359' WHERE "spree_products"."id" = 1060500675  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589648 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.963919' WHERE "spree_products"."id" = 1060500675  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500675 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500675 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500675  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500675 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500675 AND "spree_option_types"."id" = 935339167 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500675) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339167], ["position", 1], ["product_id", 1060500675], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500675) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500675 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:45:36 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500676 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.980729' WHERE "spree_products"."id" = 1060500676 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500676], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.982378' WHERE "spree_products"."id" = 1060500676  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589649 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.983539' WHERE "spree_products"."id" = 1060500676  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500676 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500676 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500676  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500676 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500676 AND "spree_option_types"."id" = 935339167 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500676) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["option_type_id", 935339167], ["position", 1], ["product_id", 1060500676], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500676) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500676 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:45:36 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:36 UTC +00:00]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500677 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.997726' WHERE "spree_products"."id" = 1060500677 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500677], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.998756' WHERE "spree_products"."id" = 1060500677  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589650 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:36.999791' WHERE "spree_products"."id" = 1060500677  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500677 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500677 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500677  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500677 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500677 AND "spree_option_types"."id" = 935339167 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500677) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339167], ["position", 1], ["product_id", 1060500677], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500677 AND "spree_option_types"."id" = 935339168 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500677) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339168], ["position", 2], ["product_id", 1060500677], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500677) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500677 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500675 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (19.4ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (2.4ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500678 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.121192' WHERE "spree_products"."id" = 1060500678 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500678], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.122971' WHERE "spree_products"."id" = 1060500678  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589651 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.123952' WHERE "spree_products"."id" = 1060500678  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500678 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500678 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500678  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500678 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500678 AND "spree_option_types"."id" = 935339169 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500678) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339169], ["position", 1], ["product_id", 1060500678], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500678) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500678 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500679 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.203424' WHERE "spree_products"."id" = 1060500679 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500679], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.205506' WHERE "spree_products"."id" = 1060500679  (0.6ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589652 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.207735' WHERE "spree_products"."id" = 1060500679  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500679 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500679 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500679  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500679 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500679 AND "spree_option_types"."id" = 935339169 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500679) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339169], ["position", 1], ["product_id", 1060500679], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500679) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500679 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500680 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.224951' WHERE "spree_products"."id" = 1060500680 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500680], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.225856' WHERE "spree_products"."id" = 1060500680  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589653 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.226972' WHERE "spree_products"."id" = 1060500680  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500680 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500680 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500680  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500680 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500680 AND "spree_option_types"."id" = 935339169 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500680) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339169], ["position", 1], ["product_id", 1060500680], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Exists (0.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500680 AND "spree_option_types"."id" = 935339170 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500680) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339170], ["position", 2], ["product_id", 1060500680], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500680) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500680 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.2ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500678 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (1.9ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (20.3ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.4ms) begin transaction SQL (1.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]]  (1.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.371510' WHERE "spree_products"."id" = 1060500681 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500681], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.372873' WHERE "spree_products"."id" = 1060500681  (19.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589654 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.393266' WHERE "spree_products"."id" = 1060500681  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500681  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834955], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500681, "updated_at" = '2012-10-15 15:45:37.413265' WHERE "spree_product_properties"."id" = 1073273202 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500681) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451503 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451503], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500681 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500681, 558398501) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451504 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451504], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500681, 558398502) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500681) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500681 AND "spree_option_types"."id" = 935339171 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (54.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500681) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339171], ["position", 1], ["product_id", 1060500681], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339171) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339171], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.515954' WHERE "spree_products"."id" = 1060500681 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500681], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.517153' WHERE "spree_products"."id" = 1060500681  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589655, 979460059) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339171) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339171], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.526728' WHERE "spree_products"."id" = 1060500681 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500681], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.527876' WHERE "spree_products"."id" = 1060500681  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589656, 979460060) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339171) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339171], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.531562' WHERE "spree_products"."id" = 1060500681 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500681], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.532972' WHERE "spree_products"."id" = 1060500681  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589657, 979460061) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500681]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500681) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589655 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589656 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589657 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500681) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.544275' WHERE "spree_products"."id" = 1060500681  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589655 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.545324' WHERE "spree_products"."id" = 1060500681 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.546316' WHERE "spree_products"."id" = 1060500681  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589656 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.546976' WHERE "spree_products"."id" = 1060500681 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500681 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.548954' WHERE "spree_products"."id" = 1060500681  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589657 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.549807' WHERE "spree_products"."id" = 1060500681 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500681) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500681 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:37.552201' WHERE "spree_products"."id" = 1060500681 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500681 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.559433' WHERE "spree_products"."id" = 1060500682 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500682], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.560364' WHERE "spree_products"."id" = 1060500682  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589658 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.561490' WHERE "spree_products"."id" = 1060500682  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500682  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834956], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500682, "updated_at" = '2012-10-15 15:45:37.567450' WHERE "spree_product_properties"."id" = 1073273203 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500682) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451503 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500682 Product assigned to Taxons : ["Paintings"]  (1.7ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500682, 558398501) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451505 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451505], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500682, 558398503) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451503 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398501 AND "spree_taxons"."taxonomy_id" = 854451503 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398501]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398501], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451503], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398501]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398504]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398504 THEN 558398501 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398501]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398504]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398504 AND "spree_taxons"."taxonomy_id" = 854451503 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398504]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398504], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451503], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398504]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398505]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398505 THEN 558398504 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398504]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398505]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500682, 558398504)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500682, 558398505) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500682) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500682 AND "spree_option_types"."id" = 935339171 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500682) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339171], ["position", 1], ["product_id", 1060500682], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.603370' WHERE "spree_products"."id" = 1060500682 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500682], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.605444' WHERE "spree_products"."id" = 1060500682  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589659, 979460059) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.608377' WHERE "spree_products"."id" = 1060500682 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500682], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.609399' WHERE "spree_products"."id" = 1060500682  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589660, 979460060) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.660804' WHERE "spree_products"."id" = 1060500682 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500682], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.661895' WHERE "spree_products"."id" = 1060500682  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589661, 979460061) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500682]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500682) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589659 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589660 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589661 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500682) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.679529' WHERE "spree_products"."id" = 1060500682  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589659 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.680657' WHERE "spree_products"."id" = 1060500682 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.681655' WHERE "spree_products"."id" = 1060500682  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589660 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.682610' WHERE "spree_products"."id" = 1060500682 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500682 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.684036' WHERE "spree_products"."id" = 1060500682  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589661 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.685212' WHERE "spree_products"."id" = 1060500682 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500682) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500682 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:37.687958' WHERE "spree_products"."id" = 1060500682 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500682 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.695838' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.696923' WHERE "spree_products"."id" = 1060500683  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589662 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.698978' WHERE "spree_products"."id" = 1060500683  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500683  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834957], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500683, "updated_at" = '2012-10-15 15:45:37.703978' WHERE "spree_product_properties"."id" = 1073273204 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834956], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500683, "updated_at" = '2012-10-15 15:45:37.706278' WHERE "spree_product_properties"."id" = 1073273205 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834958], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500683, "updated_at" = '2012-10-15 15:45:37.708978' WHERE "spree_product_properties"."id" = 1073273206 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500683) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451506 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451506], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500683 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500683, 558398506) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451503 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398501 AND "spree_taxons"."taxonomy_id" = 854451503 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398501]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398501], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451503], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398501]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398507]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398507 THEN 558398501 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398501]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398507]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500683, 558398507)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500683, 558398501) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500683) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500683 AND "spree_option_types"."id" = 935339171 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500683) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339171], ["position", 1], ["product_id", 1060500683], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.733113' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.734381' WHERE "spree_products"."id" = 1060500683  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589663, 979460059) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.736349' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.737632' WHERE "spree_products"."id" = 1060500683  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589664, 979460060) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339171 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.739633' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.740623' WHERE "spree_products"."id" = 1060500683  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589665, 979460061) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500683]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500683 AND "spree_option_types"."id" = 935339172 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500683) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["option_type_id", 935339172], ["position", 2], ["product_id", 1060500683], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339172 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339172) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339172], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.750979' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.752113' WHERE "spree_products"."id" = 1060500683  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589666, 979460062) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339172 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339172) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "colour"], ["option_type_id", 935339172], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.756515' WHERE "spree_products"."id" = 1060500683 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500683], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.757541' WHERE "spree_products"."id" = 1060500683  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589667, 979460063) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500683]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500683) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589663 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589664 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589665 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589666 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589667 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500683) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.791718' WHERE "spree_products"."id" = 1060500683  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589663 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.792722' WHERE "spree_products"."id" = 1060500683 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.793779' WHERE "spree_products"."id" = 1060500683  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589664 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.794654' WHERE "spree_products"."id" = 1060500683 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.795974' WHERE "spree_products"."id" = 1060500683  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589665 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.796659' WHERE "spree_products"."id" = 1060500683 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.797936' WHERE "spree_products"."id" = 1060500683  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589666 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.798630' WHERE "spree_products"."id" = 1060500683 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500683 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.799893' WHERE "spree_products"."id" = 1060500683  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589667 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.800770' WHERE "spree_products"."id" = 1060500683 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500683) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500683 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:37.803528' WHERE "spree_products"."id" = 1060500683 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500683 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500681 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500683 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500683 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.8ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]]  (1.4ms) commit transaction  (0.0ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.952171' WHERE "spree_products"."id" = 1060500684 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500684], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.970775' WHERE "spree_products"."id" = 1060500684  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589668 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:37.972733' WHERE "spree_products"."id" = 1060500684  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500684  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["product_id", nil], ["property_id", 905834959], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500684, "updated_at" = '2012-10-15 15:45:37.978414' WHERE "spree_product_properties"."id" = 1073273207 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451507 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451507], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500684 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500684, 558398508) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451508 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451508], ["updated_at", Mon, 15 Oct 2012 15:45:37 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500684, 558398509) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500684 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500684) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339173], ["position", 1], ["product_id", 1060500684], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339173) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339173], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.013098' WHERE "spree_products"."id" = 1060500684 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500684], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.014951' WHERE "spree_products"."id" = 1060500684  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589669, 979460064) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500684]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500684 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339173) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339173], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.023611' WHERE "spree_products"."id" = 1060500684 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500684], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.045466' WHERE "spree_products"."id" = 1060500684  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589670, 979460065) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500684]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500684 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339173) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339173], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.054771' WHERE "spree_products"."id" = 1060500684 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500684], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.055965' WHERE "spree_products"."id" = 1060500684  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589671, 979460066) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500684]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589669 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589670 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589671 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.074100' WHERE "spree_products"."id" = 1060500684  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589669 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.075334' WHERE "spree_products"."id" = 1060500684 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.076119' WHERE "spree_products"."id" = 1060500684  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589670 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.076855' WHERE "spree_products"."id" = 1060500684 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500684 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.077693' WHERE "spree_products"."id" = 1060500684  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589671 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.078465' WHERE "spree_products"."id" = 1060500684 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500684) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500684 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.6ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:38.080724' WHERE "spree_products"."id" = 1060500684 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500684 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.087946' WHERE "spree_products"."id" = 1060500685 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500685], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.089116' WHERE "spree_products"."id" = 1060500685  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589672 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.090200' WHERE "spree_products"."id" = 1060500685  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500685  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834960], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500685, "updated_at" = '2012-10-15 15:45:38.094983' WHERE "spree_product_properties"."id" = 1073273208 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451507 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500685 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500685, 558398508) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451509 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451509], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500685, 558398510) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451507 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398508 AND "spree_taxons"."taxonomy_id" = 854451507 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398508]] SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398508], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451507], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398508]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398511]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398511 THEN 558398508 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398508]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398511]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398511 AND "spree_taxons"."taxonomy_id" = 854451507 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398511]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398511], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451507], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398511]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398512]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398512 THEN 558398511 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398511]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398512]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500685, 558398511)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500685, 558398512) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500685 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500685) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339173], ["position", 1], ["product_id", 1060500685], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.172683' WHERE "spree_products"."id" = 1060500685 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500685], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.173749' WHERE "spree_products"."id" = 1060500685  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589673, 979460064) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500685]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500685 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1  (2.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.183681' WHERE "spree_products"."id" = 1060500685 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500685], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (1.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.184856' WHERE "spree_products"."id" = 1060500685  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589674, 979460065) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500685]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500685 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.192956' WHERE "spree_products"."id" = 1060500685 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500685], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.193984' WHERE "spree_products"."id" = 1060500685  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589675, 979460066) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500685]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589673 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589674 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589675 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.212046' WHERE "spree_products"."id" = 1060500685  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589673 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.213167' WHERE "spree_products"."id" = 1060500685 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.214136' WHERE "spree_products"."id" = 1060500685  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589674 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.214985' WHERE "spree_products"."id" = 1060500685 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500685 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.215880' WHERE "spree_products"."id" = 1060500685  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589675 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.216591' WHERE "spree_products"."id" = 1060500685 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500685) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500685 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:38.219526' WHERE "spree_products"."id" = 1060500685 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500685 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.226577' WHERE "spree_products"."id" = 1060500686 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.227750' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589676 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.228952' WHERE "spree_products"."id" = 1060500686  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500686  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834961], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500686, "updated_at" = '2012-10-15 15:45:38.234891' WHERE "spree_product_properties"."id" = 1073273209 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834960], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500686, "updated_at" = '2012-10-15 15:45:38.237470' WHERE "spree_product_properties"."id" = 1073273210 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834962], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500686, "updated_at" = '2012-10-15 15:45:38.241373' WHERE "spree_product_properties"."id" = 1073273211 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451510 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451510], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500686 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500686, 558398513) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451507 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398508 AND "spree_taxons"."taxonomy_id" = 854451507 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398508]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398508], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451507], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398508]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398514]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398514 THEN 558398508 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398508]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398514]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500686, 558398514)  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500686, 558398508) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500686 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500686) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339173], ["position", 1], ["product_id", 1060500686], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.265670' WHERE "spree_products"."id" = 1060500686 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.266793' WHERE "spree_products"."id" = 1060500686  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589677, 979460064) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500686]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500686 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.273454' WHERE "spree_products"."id" = 1060500686 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.274473' WHERE "spree_products"."id" = 1060500686  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589678, 979460065) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500686]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500686 AND "spree_option_types"."id" = 935339173 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339173 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.279985' WHERE "spree_products"."id" = 1060500686 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.281118' WHERE "spree_products"."id" = 1060500686  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589679, 979460066) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500686]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500686 AND "spree_option_types"."id" = 935339174 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500686) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339174], ["position", 2], ["product_id", 1060500686], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339174 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339174) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339174], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.291968' WHERE "spree_products"."id" = 1060500686 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.292986' WHERE "spree_products"."id" = 1060500686  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589680, 979460067) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500686]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500686 AND "spree_option_types"."id" = 935339174 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339174 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339174) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "colour"], ["option_type_id", 935339174], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.300796' WHERE "spree_products"."id" = 1060500686 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500686], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.302277' WHERE "spree_products"."id" = 1060500686  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589681, 979460068) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500686]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589677 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589678 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589679 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589680 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589681 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.336775' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589677 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.337986' WHERE "spree_products"."id" = 1060500686 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.338986' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589678 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.339768' WHERE "spree_products"."id" = 1060500686 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.340868' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589679 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.342225' WHERE "spree_products"."id" = 1060500686 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.343775' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589680 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.344542' WHERE "spree_products"."id" = 1060500686 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500686 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.345735' WHERE "spree_products"."id" = 1060500686  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589681 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.346549' WHERE "spree_products"."id" = 1060500686 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500686) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500686 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:38.348602' WHERE "spree_products"."id" = 1060500686 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500686 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500684 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500686 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500686 SQL (2.1ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (21.2ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (3.3ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (2.3ms) DELETE FROM "spree_properties" SQL (3.2ms) DELETE FROM "spree_product_properties" SQL (19.0ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.7ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (19.9ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_products" SQL (0.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (19.7ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (5.8ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (19.5ms) DELETE FROM "spree_product_properties" SQL (2.3ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (1.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451511 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451511], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451511], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (18.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.866305' WHERE "spree_products"."id" = 1060500687 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500687], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.867993' WHERE "spree_products"."id" = 1060500687  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589682 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.870227' WHERE "spree_products"."id" = 1060500687  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500687  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834963], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500687, "updated_at" = '2012-10-15 15:45:38.877991' WHERE "spree_product_properties"."id" = 1073273212 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500687) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451511 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500687 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500687, 558398515) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451512 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451512], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500687, 558398517) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500687) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500687 AND "spree_option_types"."id" = 935339175 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500687) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339175], ["position", 1], ["product_id", 1060500687], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339175) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339175], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.900993' WHERE "spree_products"."id" = 1060500687 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500687], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.903136' WHERE "spree_products"."id" = 1060500687  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589683, 979460069) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339175) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339175], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.906938' WHERE "spree_products"."id" = 1060500687 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500687], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.908188' WHERE "spree_products"."id" = 1060500687  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589684, 979460070) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339175) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339175], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.911654' WHERE "spree_products"."id" = 1060500687 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500687], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.929994' WHERE "spree_products"."id" = 1060500687  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589685, 979460071) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500687]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500687) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589683 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589684 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589685 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500687) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.942725' WHERE "spree_products"."id" = 1060500687  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589683 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.944266' WHERE "spree_products"."id" = 1060500687 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.945347' WHERE "spree_products"."id" = 1060500687  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589684 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.946144' WHERE "spree_products"."id" = 1060500687 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500687 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.946975' WHERE "spree_products"."id" = 1060500687  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589685 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.947985' WHERE "spree_products"."id" = 1060500687 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500687) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:38.950308' WHERE "spree_products"."id" = 1060500687 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500687 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.957601' WHERE "spree_products"."id" = 1060500688 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500688], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.959089' WHERE "spree_products"."id" = 1060500688  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589686 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.960160' WHERE "spree_products"."id" = 1060500688  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500688  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["product_id", nil], ["property_id", 905834964], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500688, "updated_at" = '2012-10-15 15:45:38.965332' WHERE "spree_product_properties"."id" = 1073273213 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500688) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451511 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500688 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500688, 558398515) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451513 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451513], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500688, 558398518) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451511 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398515 AND "spree_taxons"."taxonomy_id" = 854451511 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398515]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398515], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451511], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398515]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398519]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398519 THEN 558398515 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398515]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398519]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398519 AND "spree_taxons"."taxonomy_id" = 854451511 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398519]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398519], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451511], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398519]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398520]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398520 THEN 558398519 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398519]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398520]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500688, 558398519)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500688, 558398520) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500688) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500688 AND "spree_option_types"."id" = 935339175 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500688) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00], ["option_type_id", 935339175], ["position", 1], ["product_id", 1060500688], ["updated_at", Mon, 15 Oct 2012 15:45:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.997507' WHERE "spree_products"."id" = 1060500688 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500688], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:38.998267' WHERE "spree_products"."id" = 1060500688  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589687, 979460069) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.000575' WHERE "spree_products"."id" = 1060500688 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500688], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.001500' WHERE "spree_products"."id" = 1060500688  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589688, 979460070) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.006075' WHERE "spree_products"."id" = 1060500688 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500688], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.006910' WHERE "spree_products"."id" = 1060500688  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589689, 979460071) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500688]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500688) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589687 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589688 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589689 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500688) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.018931' WHERE "spree_products"."id" = 1060500688  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589687 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.019989' WHERE "spree_products"."id" = 1060500688 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.021107' WHERE "spree_products"."id" = 1060500688  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589688 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.021768' WHERE "spree_products"."id" = 1060500688 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500688 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.022549' WHERE "spree_products"."id" = 1060500688  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589689 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.023484' WHERE "spree_products"."id" = 1060500688 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500688) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:39.025618' WHERE "spree_products"."id" = 1060500688 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500688 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.032173' WHERE "spree_products"."id" = 1060500689 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.032995' WHERE "spree_products"."id" = 1060500689  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589690 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.034305' WHERE "spree_products"."id" = 1060500689  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500689  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834965], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500689, "updated_at" = '2012-10-15 15:45:39.039431' WHERE "spree_product_properties"."id" = 1073273214 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834964], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500689, "updated_at" = '2012-10-15 15:45:39.041916' WHERE "spree_product_properties"."id" = 1073273215 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834966], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500689, "updated_at" = '2012-10-15 15:45:39.045216' WHERE "spree_product_properties"."id" = 1073273216 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500689) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451514 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451514], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500689 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500689, 558398521) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451511 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398515 AND "spree_taxons"."taxonomy_id" = 854451511 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398515]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398515], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451511], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398515]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398522]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398522 THEN 558398515 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398515]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398522]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500689, 558398522)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500689, 558398515) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500689) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500689 AND "spree_option_types"."id" = 935339175 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500689) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339175], ["position", 1], ["product_id", 1060500689], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.069111' WHERE "spree_products"."id" = 1060500689 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.070243' WHERE "spree_products"."id" = 1060500689  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589691, 979460069) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.072625' WHERE "spree_products"."id" = 1060500689 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.073683' WHERE "spree_products"."id" = 1060500689  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589692, 979460070) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339175 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.075790' WHERE "spree_products"."id" = 1060500689 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.077161' WHERE "spree_products"."id" = 1060500689  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589693, 979460071) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500689]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500689 AND "spree_option_types"."id" = 935339176 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500689) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339176], ["position", 2], ["product_id", 1060500689], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339176 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339176) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339176], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.087660' WHERE "spree_products"."id" = 1060500689 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.088747' WHERE "spree_products"."id" = 1060500689  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589694, 979460072) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339176 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339176) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "colour"], ["option_type_id", 935339176], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.092996' WHERE "spree_products"."id" = 1060500689 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500689], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.094139' WHERE "spree_products"."id" = 1060500689  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589695, 979460073) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500689]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500689) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (16.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589691 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589692 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589693 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589694 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589695 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500689) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.124749' WHERE "spree_products"."id" = 1060500689  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589691 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.126205' WHERE "spree_products"."id" = 1060500689 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.127091' WHERE "spree_products"."id" = 1060500689  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589692 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.127757' WHERE "spree_products"."id" = 1060500689 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.128785' WHERE "spree_products"."id" = 1060500689  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589693 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.129773' WHERE "spree_products"."id" = 1060500689 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.130565' WHERE "spree_products"."id" = 1060500689  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589694 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.131489' WHERE "spree_products"."id" = 1060500689 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500689 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.132548' WHERE "spree_products"."id" = 1060500689  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589695 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.133578' WHERE "spree_products"."id" = 1060500689 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500689) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:39.135402' WHERE "spree_products"."id" = 1060500689 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500689 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (25.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500688 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500689 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500687 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500687 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589683 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589684 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339175 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589685 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (22.3ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451515 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451515], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (2.7ms) commit transaction  (0.9ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451515], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.320914' WHERE "spree_products"."id" = 1060500690 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500690], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.322248' WHERE "spree_products"."id" = 1060500690  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589696 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.340403' WHERE "spree_products"."id" = 1060500690  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500690  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834967], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500690, "updated_at" = '2012-10-15 15:45:39.346848' WHERE "spree_product_properties"."id" = 1073273217 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451515 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500690 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500690, 558398523) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451516 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451516], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500690, 558398525) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1 Spree::OptionType Load (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionType Exists (0.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500690 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500690) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339177], ["position", 1], ["product_id", 1060500690], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339177) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339177], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.377519' WHERE "spree_products"."id" = 1060500690 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500690], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.378999' WHERE "spree_products"."id" = 1060500690  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589697, 979460074) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500690]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500690 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339177) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339177], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.387726' WHERE "spree_products"."id" = 1060500690 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500690], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.388792' WHERE "spree_products"."id" = 1060500690  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589698, 979460075) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500690]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500690 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339177) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339177], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.396864' WHERE "spree_products"."id" = 1060500690 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500690], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.398579' WHERE "spree_products"."id" = 1060500690  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589699, 979460076) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500690]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589697 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589698 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589699 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.435285' WHERE "spree_products"."id" = 1060500690  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589697 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.436378' WHERE "spree_products"."id" = 1060500690 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.437385' WHERE "spree_products"."id" = 1060500690  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589698 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.438340' WHERE "spree_products"."id" = 1060500690 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500690 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.439719' WHERE "spree_products"."id" = 1060500690  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589699 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.440637' WHERE "spree_products"."id" = 1060500690 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500690) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:39.443901' WHERE "spree_products"."id" = 1060500690 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500690 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.452916' WHERE "spree_products"."id" = 1060500691 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500691], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.454153' WHERE "spree_products"."id" = 1060500691  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589700 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.455287' WHERE "spree_products"."id" = 1060500691  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500691  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834968], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500691, "updated_at" = '2012-10-15 15:45:39.460527' WHERE "spree_product_properties"."id" = 1073273218 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451515 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500691 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500691, 558398523) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451517 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451517], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500691, 558398526) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451515 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398523 AND "spree_taxons"."taxonomy_id" = 854451515 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398523]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398523], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451515], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398523]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398527]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398527 THEN 558398523 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398523]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398527]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398527 AND "spree_taxons"."taxonomy_id" = 854451515 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398527]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398527], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451515], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398527]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398528]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398528 THEN 558398527 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398527]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398528]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500691, 558398527)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500691, 558398528) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500691 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500691) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339177], ["position", 1], ["product_id", 1060500691], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.496950' WHERE "spree_products"."id" = 1060500691 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500691], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.498118' WHERE "spree_products"."id" = 1060500691  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589701, 979460074) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500691]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500691 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.505771' WHERE "spree_products"."id" = 1060500691 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500691], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.507392' WHERE "spree_products"."id" = 1060500691  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589702, 979460075) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500691]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500691 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.513830' WHERE "spree_products"."id" = 1060500691 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500691], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.514986' WHERE "spree_products"."id" = 1060500691  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589703, 979460076) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500691]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589701 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589702 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589703 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.530715' WHERE "spree_products"."id" = 1060500691  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589701 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.531884' WHERE "spree_products"."id" = 1060500691 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.533061' WHERE "spree_products"."id" = 1060500691  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589702 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.533771' WHERE "spree_products"."id" = 1060500691 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500691 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.534810' WHERE "spree_products"."id" = 1060500691  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589703 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.535609' WHERE "spree_products"."id" = 1060500691 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500691) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:39.537966' WHERE "spree_products"."id" = 1060500691 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500691 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.544562' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.546001' WHERE "spree_products"."id" = 1060500692  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589704 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.547226' WHERE "spree_products"."id" = 1060500692  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500692  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834969], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500692, "updated_at" = '2012-10-15 15:45:39.552638' WHERE "spree_product_properties"."id" = 1073273219 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834968], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500692, "updated_at" = '2012-10-15 15:45:39.556066' WHERE "spree_product_properties"."id" = 1073273220 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834970], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500692, "updated_at" = '2012-10-15 15:45:39.559968' WHERE "spree_product_properties"."id" = 1073273221 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451518 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (3.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451518], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500692 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500692, 558398529) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451515 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398523 AND "spree_taxons"."taxonomy_id" = 854451515 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398523]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398523], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451515], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398523]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398530]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398530 THEN 558398523 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398523]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398530]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500692, 558398530)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500692, 558398523) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500692 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500692) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339177], ["position", 1], ["product_id", 1060500692], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.626361' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.627447' WHERE "spree_products"."id" = 1060500692  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589705, 979460074) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500692]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500692 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.634986' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.636155' WHERE "spree_products"."id" = 1060500692  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589706, 979460075) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500692]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500692 AND "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339177 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.642106' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.643162' WHERE "spree_products"."id" = 1060500692  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589707, 979460076) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500692]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500692 AND "spree_option_types"."id" = 935339178 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500692) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339178], ["position", 2], ["product_id", 1060500692], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339178 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339178) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339178], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.655093' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.655914' WHERE "spree_products"."id" = 1060500692  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589708, 979460077) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500692]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500692 AND "spree_option_types"."id" = 935339178 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339178 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339178) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "colour"], ["option_type_id", 935339178], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.664598' WHERE "spree_products"."id" = 1060500692 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500692], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.665786' WHERE "spree_products"."id" = 1060500692  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589709, 979460078) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500692]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589705 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589706 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589707 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589708 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589709 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.699121' WHERE "spree_products"."id" = 1060500692  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589705 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.700279' WHERE "spree_products"."id" = 1060500692 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.701486' WHERE "spree_products"."id" = 1060500692  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589706 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.702380' WHERE "spree_products"."id" = 1060500692 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.703816' WHERE "spree_products"."id" = 1060500692  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589707 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.704989' WHERE "spree_products"."id" = 1060500692 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.706301' WHERE "spree_products"."id" = 1060500692  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589708 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.707216' WHERE "spree_products"."id" = 1060500692 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500692 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.708272' WHERE "spree_products"."id" = 1060500692  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589709 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.709272' WHERE "spree_products"."id" = 1060500692 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500692) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:39.712831' WHERE "spree_products"."id" = 1060500692 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500692 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500691 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500692 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500690 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500690 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589697 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589698 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339177 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589699 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (3.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (20.6ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451519 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451519], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451519], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (2.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants"  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.830901' WHERE "spree_products"."id" = 1060500693 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500693], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.832465' WHERE "spree_products"."id" = 1060500693  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589710 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.833966' WHERE "spree_products"."id" = 1060500693  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500693  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834971], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500693, "updated_at" = '2012-10-15 15:45:39.840108' WHERE "spree_product_properties"."id" = 1073273222 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451519 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500693 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500693, 558398531) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451520 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451520], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500693, 558398533) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500693 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500693) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339179], ["position", 1], ["product_id", 1060500693], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339179) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339179], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.882126' WHERE "spree_products"."id" = 1060500693 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500693], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.883601' WHERE "spree_products"."id" = 1060500693  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589711, 979460079) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500693]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500693 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339179) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339179], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.909634' WHERE "spree_products"."id" = 1060500693 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500693], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.911094' WHERE "spree_products"."id" = 1060500693  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589712, 979460080) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500693]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500693 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339179) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339179], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.920423' WHERE "spree_products"."id" = 1060500693 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500693], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.921654' WHERE "spree_products"."id" = 1060500693  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589713, 979460081) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500693]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589711 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589712 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589713 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.938277' WHERE "spree_products"."id" = 1060500693  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589711 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.939234' WHERE "spree_products"."id" = 1060500693 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.940216' WHERE "spree_products"."id" = 1060500693  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589712 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.940978' WHERE "spree_products"."id" = 1060500693 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500693 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.941808' WHERE "spree_products"."id" = 1060500693  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589713 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.942642' WHERE "spree_products"."id" = 1060500693 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500693) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:39.944912' WHERE "spree_products"."id" = 1060500693 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.951154' WHERE "spree_products"."id" = 1060500694 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500694], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.952128' WHERE "spree_products"."id" = 1060500694  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589714 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.953235' WHERE "spree_products"."id" = 1060500694  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500694  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["product_id", nil], ["property_id", 905834972], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500694, "updated_at" = '2012-10-15 15:45:39.958178' WHERE "spree_product_properties"."id" = 1073273223 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451519 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500694 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500694, 558398531) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451521 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451521], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500694, 558398534) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451519 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398531 AND "spree_taxons"."taxonomy_id" = 854451519 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398531]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398531], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451519], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398531]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398535]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398535 THEN 558398531 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398531]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398535]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398535 AND "spree_taxons"."taxonomy_id" = 854451519 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398535]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398535], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451519], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398535]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398536]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398536 THEN 558398535 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398535]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398536]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500694, 558398535)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500694, 558398536) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500694 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500694) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00], ["option_type_id", 935339179], ["position", 1], ["product_id", 1060500694], ["updated_at", Mon, 15 Oct 2012 15:45:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.994519' WHERE "spree_products"."id" = 1060500694 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500694], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:39.995667' WHERE "spree_products"."id" = 1060500694  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589715, 979460079) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500694]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500694 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (6.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.049863' WHERE "spree_products"."id" = 1060500694 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500694], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.051422' WHERE "spree_products"."id" = 1060500694  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589716, 979460080) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500694]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500694 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.058587' WHERE "spree_products"."id" = 1060500694 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500694], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.059559' WHERE "spree_products"."id" = 1060500694  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589717, 979460081) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500694]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589715 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589716 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589717 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.073658' WHERE "spree_products"."id" = 1060500694  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589715 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.074605' WHERE "spree_products"."id" = 1060500694 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.075735' WHERE "spree_products"."id" = 1060500694  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589716 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.076576' WHERE "spree_products"."id" = 1060500694 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500694 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.077588' WHERE "spree_products"."id" = 1060500694  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589717 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.078443' WHERE "spree_products"."id" = 1060500694 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500694) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:40.080690' WHERE "spree_products"."id" = 1060500694 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.088538' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.089688' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589718 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.091224' WHERE "spree_products"."id" = 1060500695  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500695  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["product_id", nil], ["property_id", 905834973], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500695, "updated_at" = '2012-10-15 15:45:40.096968' WHERE "spree_product_properties"."id" = 1073273224 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["product_id", nil], ["property_id", 905834972], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500695, "updated_at" = '2012-10-15 15:45:40.099558' WHERE "spree_product_properties"."id" = 1073273225 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["product_id", nil], ["property_id", 905834974], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500695, "updated_at" = '2012-10-15 15:45:40.102712' WHERE "spree_product_properties"."id" = 1073273226 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451522 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451522], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500695 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500695, 558398537) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451519 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398531 AND "spree_taxons"."taxonomy_id" = 854451519 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398531]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398531], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451519], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398531]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398538]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398538 THEN 558398531 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398531]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398538]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500695, 558398538)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500695, 558398531) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500695 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500695) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339179], ["position", 1], ["product_id", 1060500695], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.126759' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.127986' WHERE "spree_products"."id" = 1060500695  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589719, 979460079) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500695]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500695 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.134255' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.135263' WHERE "spree_products"."id" = 1060500695  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589720, 979460080) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500695]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500695 AND "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339179 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.141662' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.142651' WHERE "spree_products"."id" = 1060500695  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589721, 979460081) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500695]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500695 AND "spree_option_types"."id" = 935339180 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500695) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339180], ["position", 2], ["product_id", 1060500695], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339180 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339180) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339180], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.154637' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.155797' WHERE "spree_products"."id" = 1060500695  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589722, 979460082) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500695]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500695 AND "spree_option_types"."id" = 935339180 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339180 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339180) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "colour"], ["option_type_id", 935339180], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.163835' WHERE "spree_products"."id" = 1060500695 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500695], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.164810' WHERE "spree_products"."id" = 1060500695  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589723, 979460083) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500695]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589719 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589720 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589721 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589722 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589723 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.202599' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589719 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.203633' WHERE "spree_products"."id" = 1060500695 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.204798' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589720 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.205596' WHERE "spree_products"."id" = 1060500695 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.208286' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589721 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.209183' WHERE "spree_products"."id" = 1060500695 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.210578' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589722 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.211956' WHERE "spree_products"."id" = 1060500695 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500695 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.214422' WHERE "spree_products"."id" = 1060500695  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589723 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.215260' WHERE "spree_products"."id" = 1060500695 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500695) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:40.218464' WHERE "spree_products"."id" = 1060500695  (4.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500694 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500695 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500693 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500693 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589711 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589712 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339179 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589713 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (2.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.5ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451523 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451523], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]]  (2.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451523], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]]  (3.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) begin transaction Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.292777' WHERE "spree_products"."id" = 1060500696 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500696], ["sku", "MV_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.294527' WHERE "spree_products"."id" = 1060500696  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589724 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.296239' WHERE "spree_products"."id" = 1060500696  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500696  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500696 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500696) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339181], ["position", 1], ["product_id", 1060500696], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500696 AND "spree_option_types"."id" = 935339182 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500696) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339182], ["position", 2], ["product_id", 1060500696], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339181) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339181], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339182) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "colour"], ["option_type_id", 935339182], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.347600' WHERE "spree_products"."id" = 1060500696 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500696], ["sku", "MV_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.348711' WHERE "spree_products"."id" = 1060500696  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589725, 979460084)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589725, 979460085) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339181) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339181], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.371564' WHERE "spree_products"."id" = 1060500696 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500696], ["sku", "MV_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.372791' WHERE "spree_products"."id" = 1060500696  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589726, 979460086)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589726, 979460085) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500696]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500696) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500696 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339181) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339181], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.384490' WHERE "spree_products"."id" = 1060500696 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500696], ["sku", "MV_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.385558' WHERE "spree_products"."id" = 1060500696  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589727, 979460087) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500696]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500696) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589725 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589726 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589727 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500696) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.396779' WHERE "spree_products"."id" = 1060500696  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589725 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.398714' WHERE "spree_products"."id" = 1060500696 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.399743' WHERE "spree_products"."id" = 1060500696  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589726 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.400556' WHERE "spree_products"."id" = 1060500696 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500696 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.401445' WHERE "spree_products"."id" = 1060500696  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589727 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.402267' WHERE "spree_products"."id" = 1060500696 Saving csv row ["MV_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "mime_type:jpeg, PDF;print_type:colour", nil, "mime_type:PNG", "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500696) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:40.404988' WHERE "spree_products"."id" = 1060500696 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500697 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.413178' WHERE "spree_products"."id" = 1060500697 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500697], ["sku", "MV_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.414172' WHERE "spree_products"."id" = 1060500697  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589728 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.415596' WHERE "spree_products"."id" = 1060500697  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500697  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500697 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500697) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339181], ["position", 1], ["product_id", 1060500697], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500697 AND "spree_option_types"."id" = 935339182 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500697) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339182], ["position", 2], ["product_id", 1060500697], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339182) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339182], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500697 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.428863' WHERE "spree_products"."id" = 1060500697 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500697], ["sku", "MV_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.429832' WHERE "spree_products"."id" = 1060500697  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589729, 979460088)  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589729, 979460084) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500697]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500697) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500697 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500697 AND "spree_option_types"."id" = 935339182 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500697 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.442671' WHERE "spree_products"."id" = 1060500697 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500697], ["sku", "MV_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.443891' WHERE "spree_products"."id" = 1060500697  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589730, 979460088)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589730, 979460087) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500697]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500697) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589729 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589730 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500697) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500697 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.453952' WHERE "spree_products"."id" = 1060500697  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589729 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.455209' WHERE "spree_products"."id" = 1060500697 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500697 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.456223' WHERE "spree_products"."id" = 1060500697  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589730 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.457173' WHERE "spree_products"."id" = 1060500697 Saving csv row ["MV_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "mime_type:jpeg;print_type:black_white", nil, "mime_type:PNG;print_type:black_white", "5|4"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500697) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500697 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-15 15:45:40.459633' WHERE "spree_products"."id" = 1060500697 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.465647' WHERE "spree_products"."id" = 1060500698 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.467341' WHERE "spree_products"."id" = 1060500698  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589731 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.468638' WHERE "spree_products"."id" = 1060500698  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500698  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (3.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500698) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339181], ["position", 1], ["product_id", 1060500698], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339182 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500698) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339182], ["position", 2], ["product_id", 1060500698], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "size"], ["position", 0], ["presentation", "Size"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339183 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500698) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339183], ["position", 3], ["product_id", 1060500698], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339183 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339183) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "large"], ["option_type_id", 935339183], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.536204' WHERE "spree_products"."id" = 1060500698 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.537540' WHERE "spree_products"."id" = 1060500698  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589732, 979460085)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589732, 979460089)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589732, 979460084) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339182) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "sepia"], ["option_type_id", 935339182], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339183 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.542651' WHERE "spree_products"."id" = 1060500698 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.543789' WHERE "spree_products"."id" = 1060500698  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589733, 979460090)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589733, 979460089)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589733, 979460084) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500698]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (16.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.567091' WHERE "spree_products"."id" = 1060500698 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.568166' WHERE "spree_products"."id" = 1060500698  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589734, 979460087) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500698]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500698) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339181 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339181 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.575930' WHERE "spree_products"."id" = 1060500698 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.577141' WHERE "spree_products"."id" = 1060500698  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589735, 979460086) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500698]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500698 AND "spree_option_types"."id" = 935339182 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339182 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500698 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.583105' WHERE "spree_products"."id" = 1060500698 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500698], ["sku", "MV_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.584143' WHERE "spree_products"."id" = 1060500698  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589736, 979460088) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500698]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500698) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row ["MV_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNG", "mime_type:PDF|print_type:black_white", nil, "12|4|7|12"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500698) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500698 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (5.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (1.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500696 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500696 ORDER BY spree_option_types.position Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589725 Booted Spree using version 1.1.3 SQL (23.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.709698' WHERE "spree_products"."id" = 1060500699 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500699], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.711459' WHERE "spree_products"."id" = 1060500699  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589737 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.713197' WHERE "spree_products"."id" = 1060500699  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500699  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["product_id", nil], ["property_id", 905834975], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500699, "updated_at" = '2012-10-15 15:45:40.719065' WHERE "spree_product_properties"."id" = 1073273227 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451524 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451524], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500699 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500699, 558398541) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451525 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451525], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500699, 558398542) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500699 AND "spree_option_types"."id" = 935339184 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500699) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["option_type_id", 935339184], ["position", 1], ["product_id", 1060500699], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339184) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339184], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.761870' WHERE "spree_products"."id" = 1060500699 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500699], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.763195' WHERE "spree_products"."id" = 1060500699  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589738, 979460091) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339184) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339184], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.768328' WHERE "spree_products"."id" = 1060500699 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500699], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.769363' WHERE "spree_products"."id" = 1060500699  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589739, 979460092) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339184) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339184], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.792489' WHERE "spree_products"."id" = 1060500699 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500699], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.793833' WHERE "spree_products"."id" = 1060500699  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589740, 979460093) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500699]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589738 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589739 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589740 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.809445' WHERE "spree_products"."id" = 1060500699  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589738 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.810479' WHERE "spree_products"."id" = 1060500699 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.811638' WHERE "spree_products"."id" = 1060500699  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589739 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.812567' WHERE "spree_products"."id" = 1060500699 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500699 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.813718' WHERE "spree_products"."id" = 1060500699  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589740 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:40.814532' WHERE "spree_products"."id" = 1060500699 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589737 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (4.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:40 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "14/02/2011", "399.99", "320", "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500699) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:41.861364' WHERE "spree_products"."id" = 1060500699 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.921855' WHERE "spree_products"."id" = 1060500700 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500700], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.923273' WHERE "spree_products"."id" = 1060500700  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589741 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.925031' WHERE "spree_products"."id" = 1060500700  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500700  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["product_id", nil], ["property_id", 905834976], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500700, "updated_at" = '2012-10-15 15:45:41.933371' WHERE "spree_product_properties"."id" = 1073273228 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451524 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500700 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500700, 558398541) Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451526 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451526], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500700, 558398543) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451527 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451527], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500700, 558398544) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500700 AND "spree_option_types"."id" = 935339184 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500700) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00], ["option_type_id", 935339184], ["position", 1], ["product_id", 1060500700], ["updated_at", Mon, 15 Oct 2012 15:45:41 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.964797' WHERE "spree_products"."id" = 1060500700 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500700], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.966031' WHERE "spree_products"."id" = 1060500700  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589742, 979460091) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.968571' WHERE "spree_products"."id" = 1060500700 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500700], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.969962' WHERE "spree_products"."id" = 1060500700  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589743, 979460092) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.972329' WHERE "spree_products"."id" = 1060500700 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500700], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.973253' WHERE "spree_products"."id" = 1060500700  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589744, 979460093) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500700]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589742 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589743 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589744 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.986425' WHERE "spree_products"."id" = 1060500700  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589742 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.987701' WHERE "spree_products"."id" = 1060500700 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.988764' WHERE "spree_products"."id" = 1060500700  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589743 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.989528' WHERE "spree_products"."id" = 1060500700 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500700 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.990757' WHERE "spree_products"."id" = 1060500700  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589744 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:41.991543' WHERE "spree_products"."id" = 1060500700 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589741 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:42 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "14/05/2011", "100", "30", "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500700) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500700 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:46.097692' WHERE "spree_products"."id" = 1060500700 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.131639' WHERE "spree_products"."id" = 1060500701 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.133166' WHERE "spree_products"."id" = 1060500701  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589745 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.134774' WHERE "spree_products"."id" = 1060500701  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500701  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["product_id", nil], ["property_id", 905834977], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["value", nil]]  (0.4ms) UPDATE "spree_product_properties" SET "product_id" = 1060500701, "updated_at" = '2012-10-15 15:45:46.142840' WHERE "spree_product_properties"."id" = 1073273229 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["product_id", nil], ["property_id", 905834976], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500701, "updated_at" = '2012-10-15 15:45:46.145552' WHERE "spree_product_properties"."id" = 1073273230 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["product_id", nil], ["property_id", 905834978], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500701, "updated_at" = '2012-10-15 15:45:46.149017' WHERE "spree_product_properties"."id" = 1073273231 Created New ProductProperty # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451528 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451528], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500701 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500701, 558398545) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500701 AND "spree_option_types"."id" = 935339184 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500701) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["option_type_id", 935339184], ["position", 1], ["product_id", 1060500701], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.172267' WHERE "spree_products"."id" = 1060500701 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.174316' WHERE "spree_products"."id" = 1060500701  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589746, 979460091) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.177050' WHERE "spree_products"."id" = 1060500701 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.178113' WHERE "spree_products"."id" = 1060500701  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589747, 979460092) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339184 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.180787' WHERE "spree_products"."id" = 1060500701 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.181779' WHERE "spree_products"."id" = 1060500701  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589748, 979460093) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500701]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500701 AND "spree_option_types"."id" = 935339185 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500701) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["option_type_id", 935339185], ["position", 2], ["product_id", 1060500701], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339185 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339185) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339185], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.195405' WHERE "spree_products"."id" = 1060500701 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.196775' WHERE "spree_products"."id" = 1060500701  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589749, 979460094) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339185 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339185) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["name", "colour"], ["option_type_id", 935339185], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.201782' WHERE "spree_products"."id" = 1060500701 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500701], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.202801' WHERE "spree_products"."id" = 1060500701  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589750, 979460095) Spree::Product Load (18.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500701]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589746 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589747 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589748 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589749 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589750 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.237793' WHERE "spree_products"."id" = 1060500701  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589746 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.238781' WHERE "spree_products"."id" = 1060500701 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.239835' WHERE "spree_products"."id" = 1060500701  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589747 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.240720' WHERE "spree_products"."id" = 1060500701 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.241511' WHERE "spree_products"."id" = 1060500701  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589748 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.242335' WHERE "spree_products"."id" = 1060500701 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.243814' WHERE "spree_products"."id" = 1060500701  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589749 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.244767' WHERE "spree_products"."id" = 1060500701 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500701 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.245758' WHERE "spree_products"."id" = 1060500701  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589750 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:46.246617' WHERE "spree_products"."id" = 1060500701 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589745 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:46 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "01/07/2012", "50.34", "23.34", "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500701) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500701 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:46.905438' WHERE "spree_products"."id" = 1060500701  (5.9ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500699 AND ("spree_variants".is_master = 't') LIMIT 1  (0.8ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589737) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500699)) SQL (3.5ms) DELETE FROM "spree_products" SQL (2.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.098079' WHERE "spree_products"."id" = 1060500702 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.099419' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589751 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.100731' WHERE "spree_products"."id" = 1060500702  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500702  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["product_id", nil], ["property_id", 905834979], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500702, "updated_at" = '2012-10-15 15:45:47.123096' WHERE "spree_product_properties"."id" = 1073273232 Created New ProductProperty # Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451529], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500702 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500702, 558398546) Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451530 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451530], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500702, 558398547) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500702 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500702) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500702], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339186], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.150582' WHERE "spree_products"."id" = 1060500702 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.152240' WHERE "spree_products"."id" = 1060500702  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589752, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339186], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.157565' WHERE "spree_products"."id" = 1060500702 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.158424' WHERE "spree_products"."id" = 1060500702  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589753, 979460097) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (15.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339186], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.178096' WHERE "spree_products"."id" = 1060500702 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.179565' WHERE "spree_products"."id" = 1060500702  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589754, 979460098) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500702]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589752 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589753 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589754 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.193094' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589752 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.194097' WHERE "spree_products"."id" = 1060500702 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.195290' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589753 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.196373' WHERE "spree_products"."id" = 1060500702 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.197984' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589754 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.199173' WHERE "spree_products"."id" = 1060500702 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589751 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.9ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (17.4ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:47.832441' WHERE "spree_products"."id" = 1060500702 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500702 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.892769' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.894394' WHERE "spree_products"."id" = 1060500703  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589755 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.897244' WHERE "spree_products"."id" = 1060500703  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500703  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["product_id", nil], ["property_id", 905834980], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500703, "updated_at" = '2012-10-15 15:45:47.904461' WHERE "spree_product_properties"."id" = 1073273233 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500703 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398546) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451531 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451531], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398548) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451532 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451532], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398549) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500703 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500703) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500703], ["updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.929535' WHERE "spree_products"."id" = 1060500703 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.930880' WHERE "spree_products"."id" = 1060500703  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589756, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.933175' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.934170' WHERE "spree_products"."id" = 1060500703  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589757, 979460097) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.936513' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.937463' WHERE "spree_products"."id" = 1060500703  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589758, 979460098) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500703]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589756 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589757 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589758 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.951000' WHERE "spree_products"."id" = 1060500703  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589756 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.952106' WHERE "spree_products"."id" = 1060500703 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.953376' WHERE "spree_products"."id" = 1060500703  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589757 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.954271' WHERE "spree_products"."id" = 1060500703 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.955219' WHERE "spree_products"."id" = 1060500703  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589758 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:47.955951' WHERE "spree_products"."id" = 1060500703 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589755 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:47 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:52.161523' WHERE "spree_products"."id" = 1060500703 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] succesfully SAVED : ID 1060500703 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.199366' WHERE "spree_products"."id" = 1060500704 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.201685' WHERE "spree_products"."id" = 1060500704  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589759 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.203340' WHERE "spree_products"."id" = 1060500704  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500704  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (85.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["product_id", nil], ["property_id", 905834981], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:52.298888' WHERE "spree_product_properties"."id" = 1073273234 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["product_id", nil], ["property_id", 905834980], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:52.301899' WHERE "spree_product_properties"."id" = 1073273235 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Created New Property # SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["product_id", nil], ["property_id", 905834982], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:52.304993' WHERE "spree_product_properties"."id" = 1073273236 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451533 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451533], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500704 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500704, 558398550) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500704 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500704) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500704], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.320745' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.321967' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589760, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.324219' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.325108' WHERE "spree_products"."id" = 1060500704  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589761, 979460097) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.327099' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.328097' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589762, 979460098) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500704]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500704 AND "spree_option_types"."id" = 935339187 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500704) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["option_type_id", 935339187], ["position", 2], ["product_id", 1060500704], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339187 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339187) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339187], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.339575' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.340689' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589763, 979460099) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339187 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339187) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["name", "colour"], ["option_type_id", 935339187], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.345017' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.346023' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589764, 979460100) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500704]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589760 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589761 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589762 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589763 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589764 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.381242' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589760 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.382403' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.383551' WHERE "spree_products"."id" = 1060500704  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589761 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.385404' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.386519' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589762 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.387701' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.388691' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589763 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.389492' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.390412' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589764 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:52.391214' WHERE "spree_products"."id" = 1060500704 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589759 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (4.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (2.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:52 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:53.154143' WHERE "spree_products"."id" = 1060500704 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500704 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (1.0ms) rollback transaction SQL (7.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (3.0ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.280173' WHERE "spree_products"."id" = 1060500702 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.298140' WHERE "spree_products"."id" = 1060500702  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589751 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.300173' WHERE "spree_products"."id" = 1060500702  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500702  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834979], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500702, "updated_at" = '2012-10-15 15:45:53.308743' WHERE "spree_product_properties"."id" = 1073273232 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451529], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500702 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500702, 558398546) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451530 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451530], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500702, 558398547) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.7ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500702 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500702) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500702], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339186], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.496515' WHERE "spree_products"."id" = 1060500702 SQL (1.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.498701' WHERE "spree_products"."id" = 1060500702  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589752, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339186], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.503900' WHERE "spree_products"."id" = 1060500702 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.506092' WHERE "spree_products"."id" = 1060500702  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589753, 979460097) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339186) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339186], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.513176' WHERE "spree_products"."id" = 1060500702 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500702], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.514167' WHERE "spree_products"."id" = 1060500702  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589754, 979460098) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500702]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589752 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589753 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589754 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.525642' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589752 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.526775' WHERE "spree_products"."id" = 1060500702 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.527817' WHERE "spree_products"."id" = 1060500702  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589753 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.528452' WHERE "spree_products"."id" = 1060500702 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500702 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.529584' WHERE "spree_products"."id" = 1060500702  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589754 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.531060' WHERE "spree_products"."id" = 1060500702 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500702) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500702 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:53.534140' WHERE "spree_products"."id" = 1060500702 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500702 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.541348' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.542390' WHERE "spree_products"."id" = 1060500703  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589755 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.543329' WHERE "spree_products"."id" = 1060500703  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500703  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834980], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500703, "updated_at" = '2012-10-15 15:45:53.548580' WHERE "spree_product_properties"."id" = 1073273233 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500703 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398546) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (2.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451531 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451531], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398548) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398546 AND "spree_taxons"."taxonomy_id" = 854451529 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398546]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398546], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451529], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398546]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398549]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398549 THEN 558398546 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398546]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398549]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398549 AND "spree_taxons"."taxonomy_id" = 854451529 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398549]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398549], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451529], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398549]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398550]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398550 THEN 558398549 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398549]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398550]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398549)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500703, 558398550) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500703 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500703) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500703], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.582590' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.583905' WHERE "spree_products"."id" = 1060500703  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589756, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.586098' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.586948' WHERE "spree_products"."id" = 1060500703  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589757, 979460097) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.590242' WHERE "spree_products"."id" = 1060500703 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500703], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.591176' WHERE "spree_products"."id" = 1060500703  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589758, 979460098) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500703]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589756 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589757 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589758 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (1.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.604345' WHERE "spree_products"."id" = 1060500703  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589756 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.606037' WHERE "spree_products"."id" = 1060500703 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.606902' WHERE "spree_products"."id" = 1060500703  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589757 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.608026' WHERE "spree_products"."id" = 1060500703 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500703 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.608881' WHERE "spree_products"."id" = 1060500703  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589758 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.609379' WHERE "spree_products"."id" = 1060500703 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500703) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500703 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:53.611920' WHERE "spree_products"."id" = 1060500703 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500703 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.619254' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.620177' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589759 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.622078' WHERE "spree_products"."id" = 1060500704  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500704  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834981], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:53.627177' WHERE "spree_product_properties"."id" = 1073273234 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834980], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:53.630391' WHERE "spree_product_properties"."id" = 1073273235 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834982], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500704, "updated_at" = '2012-10-15 15:45:53.632977' WHERE "spree_product_properties"."id" = 1073273236 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451532 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451532], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500704 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500704, 558398551) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451529 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398546 AND "spree_taxons"."taxonomy_id" = 854451529 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398546]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398546], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451529], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398546]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398552]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398552 THEN 558398546 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398546]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398552]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500704, 558398552)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500704, 558398546) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500704 AND "spree_option_types"."id" = 935339186 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500704) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["option_type_id", 935339186], ["position", 1], ["product_id", 1060500704], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.663671' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.664935' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589760, 979460096) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.667043' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.667843' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589761, 979460097) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339186 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.670837' WHERE "spree_products"."id" = 1060500704 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.671963' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589762, 979460098) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500704]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500704 AND "spree_option_types"."id" = 935339187 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500704) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["option_type_id", 935339187], ["position", 2], ["product_id", 1060500704], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339187 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339187) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339187], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.682178' WHERE "spree_products"."id" = 1060500704 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.683150' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589763, 979460099) Spree::OptionValue Load (1.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339187 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339187) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "colour"], ["option_type_id", 935339187], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.688633' WHERE "spree_products"."id" = 1060500704 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500704], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.689480' WHERE "spree_products"."id" = 1060500704  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589764, 979460100) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500704]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589760 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589761 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589762 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589763 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589764 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.704596' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589760 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.705411' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.706225' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589761 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.707178' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.708496' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589762 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.709159' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.709961' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589763 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.710712' WHERE "spree_products"."id" = 1060500704 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500704 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.711504' WHERE "spree_products"."id" = 1060500704  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589764 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.712533' WHERE "spree_products"."id" = 1060500704 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500704) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:53.715323' WHERE "spree_products"."id" = 1060500704 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500704 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500704 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589759) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500704)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (2.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.8ms) DELETE FROM "spree_option_types" SQL (4.8ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (3.9ms) DELETE FROM "spree_taxonomies" SQL (4.6ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.858685' WHERE "spree_products"."id" = 1060500705 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500705], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.860094' WHERE "spree_products"."id" = 1060500705  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589765 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.863947' WHERE "spree_products"."id" = 1060500705  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500705  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834983], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500705, "updated_at" = '2012-10-15 15:45:53.870532' WHERE "spree_product_properties"."id" = 1073273237 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500705) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451533 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451533], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500705 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500705, 558398553) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451534 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451534], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500705, 558398554) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500705) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500705 AND "spree_option_types"."id" = 935339188 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500705) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["option_type_id", 935339188], ["position", 1], ["product_id", 1060500705], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339188) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339188], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.895666' WHERE "spree_products"."id" = 1060500705 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500705], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.896882' WHERE "spree_products"."id" = 1060500705  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589766, 979460101) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339188) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339188], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.902898' WHERE "spree_products"."id" = 1060500705 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500705], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.904087' WHERE "spree_products"."id" = 1060500705  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589767, 979460102) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339188) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339188], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.908012' WHERE "spree_products"."id" = 1060500705 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500705], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.910442' WHERE "spree_products"."id" = 1060500705  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589768, 979460103) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500705]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500705) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589766 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589767 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589768 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500705) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.924667' WHERE "spree_products"."id" = 1060500705  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589766 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.928162' WHERE "spree_products"."id" = 1060500705 Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.929893' WHERE "spree_products"."id" = 1060500705  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589767 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.930786' WHERE "spree_products"."id" = 1060500705 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500705 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.931579' WHERE "spree_products"."id" = 1060500705  (2.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589768 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.934439' WHERE "spree_products"."id" = 1060500705 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500705) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500705 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:53.937119' WHERE "spree_products"."id" = 1060500705 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500705 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.946791' WHERE "spree_products"."id" = 1060500706 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500706], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.947923' WHERE "spree_products"."id" = 1060500706  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589769 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:53.951506' WHERE "spree_products"."id" = 1060500706  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500706  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["product_id", nil], ["property_id", 905834984], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500706, "updated_at" = '2012-10-15 15:45:53.959181' WHERE "spree_product_properties"."id" = 1073273238 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500706) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451533 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500706 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500706, 558398553) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451535 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451535], ["updated_at", Mon, 15 Oct 2012 15:45:53 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.8ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500706, 558398555) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451533 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398553 AND "spree_taxons"."taxonomy_id" = 854451533 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398553]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398553], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451533], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398553]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398556]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398556 THEN 558398553 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398553]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398556]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398556 AND "spree_taxons"."taxonomy_id" = 854451533 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398556]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398556], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451533], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398556]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398557]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398557 THEN 558398556 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398556]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398557]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500706, 558398556)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500706, 558398557) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500706) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500706 AND "spree_option_types"."id" = 935339188 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500706) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["option_type_id", 935339188], ["position", 1], ["product_id", 1060500706], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.035175' WHERE "spree_products"."id" = 1060500706 SQL (1.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500706], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.037388' WHERE "spree_products"."id" = 1060500706  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589770, 979460101) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.040684' WHERE "spree_products"."id" = 1060500706 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500706], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.041483' WHERE "spree_products"."id" = 1060500706  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589771, 979460102) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.043825' WHERE "spree_products"."id" = 1060500706 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500706], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.044909' WHERE "spree_products"."id" = 1060500706  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589772, 979460103) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500706]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500706) LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589770 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589771 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589772 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500706) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.058418' WHERE "spree_products"."id" = 1060500706  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589770 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.059344' WHERE "spree_products"."id" = 1060500706 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.060182' WHERE "spree_products"."id" = 1060500706  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589771 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.061059' WHERE "spree_products"."id" = 1060500706 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500706 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.061907' WHERE "spree_products"."id" = 1060500706  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589772 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.062753' WHERE "spree_products"."id" = 1060500706 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500706) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500706 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:45:54.064855' WHERE "spree_products"."id" = 1060500706 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500706 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.071759' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.072959' WHERE "spree_products"."id" = 1060500707  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589773 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.074002' WHERE "spree_products"."id" = 1060500707  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500707  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["product_id", nil], ["property_id", 905834985], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500707, "updated_at" = '2012-10-15 15:45:54.079565' WHERE "spree_product_properties"."id" = 1073273239 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["product_id", nil], ["property_id", 905834984], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500707, "updated_at" = '2012-10-15 15:45:54.081870' WHERE "spree_product_properties"."id" = 1073273240 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["product_id", nil], ["property_id", 905834986], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500707, "updated_at" = '2012-10-15 15:45:54.084310' WHERE "spree_product_properties"."id" = 1073273241 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500707) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451536 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451536], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500707 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500707, 558398558) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451533 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398553 AND "spree_taxons"."taxonomy_id" = 854451533 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398553]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398553], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451533], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398553]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398559]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398559 THEN 558398553 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398553]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398559]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500707, 558398559)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500707, 558398553) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500707) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500707 AND "spree_option_types"."id" = 935339188 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500707) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["option_type_id", 935339188], ["position", 1], ["product_id", 1060500707], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.110641' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.111625' WHERE "spree_products"."id" = 1060500707  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589774, 979460101) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.113820' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.114904' WHERE "spree_products"."id" = 1060500707  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589775, 979460102) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339188 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.118811' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.119988' WHERE "spree_products"."id" = 1060500707  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589776, 979460103) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500707]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500707 AND "spree_option_types"."id" = 935339189 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500707) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["option_type_id", 935339189], ["position", 2], ["product_id", 1060500707], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339189 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339189) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339189], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.131109' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.132189' WHERE "spree_products"."id" = 1060500707  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589777, 979460104) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339189 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339189) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "colour"], ["option_type_id", 935339189], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.138018' WHERE "spree_products"."id" = 1060500707 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500707], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.138984' WHERE "spree_products"."id" = 1060500707  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589778, 979460105) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500707]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500707) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589774 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589775 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589776 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589777 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589778 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500707) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.153676' WHERE "spree_products"."id" = 1060500707  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589774 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.154775' WHERE "spree_products"."id" = 1060500707 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.155808' WHERE "spree_products"."id" = 1060500707  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589775 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.156682' WHERE "spree_products"."id" = 1060500707 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.157562' WHERE "spree_products"."id" = 1060500707  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589776 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.158942' WHERE "spree_products"."id" = 1060500707 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.159818' WHERE "spree_products"."id" = 1060500707  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589777 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.160385' WHERE "spree_products"."id" = 1060500707 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500707 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.161539' WHERE "spree_products"."id" = 1060500707  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589778 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.162514' WHERE "spree_products"."id" = 1060500707 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500707) LIMIT 1  (0.9ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:45:54.165702' WHERE "spree_products"."id" = 1060500707 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500707 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.7ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500707 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589773) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500707)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (2.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (3.3ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (5.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (3.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.314777' WHERE "spree_products"."id" = 1060500708 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.316513' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589779 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.317960' WHERE "spree_products"."id" = 1060500708  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500708  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["product_id", nil], ["property_id", 905834987], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500708, "updated_at" = '2012-10-15 15:45:54.324832' WHERE "spree_product_properties"."id" = 1073273242 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451537 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451537], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500708 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500708, 558398560) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451538 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451538], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500708, 558398561) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500708 AND "spree_option_types"."id" = 935339190 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500708) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["option_type_id", 935339190], ["position", 1], ["product_id", 1060500708], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339190], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.350649' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.351863' WHERE "spree_products"."id" = 1060500708  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589780, 979460106) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339190], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.355586' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.356704' WHERE "spree_products"."id" = 1060500708  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589781, 979460107) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339190], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.360049' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.361176' WHERE "spree_products"."id" = 1060500708  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589782, 979460108) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500708]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589780 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589781 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589782 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.371141' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589780 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.372186' WHERE "spree_products"."id" = 1060500708 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.373274' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589781 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.374085' WHERE "spree_products"."id" = 1060500708 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.374859' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589782 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:54.375566' WHERE "spree_products"."id" = 1060500708 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589779 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:54 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::Asset Load (2.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:55 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:45:56.114993' WHERE "spree_products"."id" = 1060500708 Row ["MULTI_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg", "fixtures/images/DEMO_001_ror_bag.jpeg:more random alt text", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500708 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.228288' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.230203' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589783 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.231330' WHERE "spree_products"."id" = 1060500709  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500709  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["product_id", nil], ["property_id", 905834988], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500709, "updated_at" = '2012-10-15 15:45:56.237624' WHERE "spree_product_properties"."id" = 1073273243 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451537 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500709 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398560) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451539], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398562) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451540 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451540], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398563) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500709 AND "spree_option_types"."id" = 935339190 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500709) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["option_type_id", 935339190], ["position", 1], ["product_id", 1060500709], ["updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.263067' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.264438' WHERE "spree_products"."id" = 1060500709  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589784, 979460106) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.267327' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.268473' WHERE "spree_products"."id" = 1060500709  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589785, 979460107) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.271152' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.272177' WHERE "spree_products"."id" = 1060500709  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589786, 979460108) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500709]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589784 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589785 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589786 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.285585' WHERE "spree_products"."id" = 1060500709  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589784 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.286665' WHERE "spree_products"."id" = 1060500709 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.287941' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589785 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.288754' WHERE "spree_products"."id" = 1060500709 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.289561' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589786 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:45:56.290210' WHERE "spree_products"."id" = 1060500709 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589783 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (4.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:45:56 UTC +00:00], ["attachment_width", 2424], ["position", 4], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (2.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:46:00 UTC +00:00], ["attachment_width", 240], ["position", 5], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign :  (1.0ms) rollback transaction Booted Spree using version 1.1.3 SQL (7.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.3ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451537 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451537], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451537], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (3.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451537], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (2.4ms) commit transaction Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (3.4ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.6ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (4.0ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451538 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451538], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451538], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (1.9ms) commit transaction  (0.9ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451538], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (2.1ms) commit transaction Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451538 LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451538 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451538 LIMIT 1 Booted Spree using version 1.1.3 SQL (5.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (3.9ms) DELETE FROM "spree_option_values" SQL (4.1ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451539], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451539], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) begin transaction  (1.0ms) UPDATE "spree_taxons" SET "parent_id" = 558398566, "updated_at" = '2012-10-15 15:46:01.805674' WHERE "spree_taxons"."id" = 558398567 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398566]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398567]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398567 THEN 558398566 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398566]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398567]]  (1.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.5ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398566 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.906890' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.909032' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589779 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.912280' WHERE "spree_products"."id" = 1060500708  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500708  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (1.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["product_id", nil], ["property_id", 905834987], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500708, "updated_at" = '2012-10-15 15:46:01.920280' WHERE "spree_product_properties"."id" = 1073273242 Created New ProductProperty # Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500708 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500708, 558398566) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451540 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451540], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500708, 558398568) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::OptionType Exists (2.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500708 AND "spree_option_types"."id" = 935339190 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500708) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["option_type_id", 935339190], ["position", 1], ["product_id", 1060500708], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339190], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.953941' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.955281' WHERE "spree_products"."id" = 1060500708  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589780, 979460106) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339190], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.963430' WHERE "spree_products"."id" = 1060500708 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.965275' WHERE "spree_products"."id" = 1060500708  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589781, 979460107) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339190) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339190], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.970281' WHERE "spree_products"."id" = 1060500708 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500708], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.972140' WHERE "spree_products"."id" = 1060500708  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589782, 979460108) Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500708]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589780 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589781 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589782 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.987171' WHERE "spree_products"."id" = 1060500708  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589780 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.988757' WHERE "spree_products"."id" = 1060500708 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.989615' WHERE "spree_products"."id" = 1060500708  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589781 SQL (2.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.990182' WHERE "spree_products"."id" = 1060500708 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.993636' WHERE "spree_products"."id" = 1060500708  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589782 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:01.994568' WHERE "spree_products"."id" = 1060500708 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500708) LIMIT 1  (0.7ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500708 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:46:01.997142' WHERE "spree_products"."id" = 1060500708 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500708 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.004176' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.006141' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589783 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.007482' WHERE "spree_products"."id" = 1060500709  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500709  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834988], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500709, "updated_at" = '2012-10-15 15:46:02.014606' WHERE "spree_product_properties"."id" = 1073273243 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500709 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398566) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451541 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451541], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398569) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398566 AND "spree_taxons"."taxonomy_id" = 854451539 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398566]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398566], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451539], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398566]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398570]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398570 THEN 558398566 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398566]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398570]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398570 AND "spree_taxons"."taxonomy_id" = 854451539 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398570]] SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398570], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451539], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398570]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398571]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398571 THEN 558398570 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398570]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398571]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.6ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398570)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500709, 558398571) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500709 AND "spree_option_types"."id" = 935339190 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500709) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339190], ["position", 1], ["product_id", 1060500709], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.051908' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.052913' WHERE "spree_products"."id" = 1060500709  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589784, 979460106) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.056670' WHERE "spree_products"."id" = 1060500709 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (1.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.057958' WHERE "spree_products"."id" = 1060500709  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589785, 979460107) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.061809' WHERE "spree_products"."id" = 1060500709 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500709], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.116283' WHERE "spree_products"."id" = 1060500709  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589786, 979460108) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500709]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589784 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589785 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589786 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.133004' WHERE "spree_products"."id" = 1060500709  (0.7ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589784 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.134824' WHERE "spree_products"."id" = 1060500709 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.135907' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589785 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.136807' WHERE "spree_products"."id" = 1060500709 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.137613' WHERE "spree_products"."id" = 1060500709  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589786 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.138283' WHERE "spree_products"."id" = 1060500709 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500709) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500709 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:46:02.140644' WHERE "spree_products"."id" = 1060500709 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500709 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.147847' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.148727' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589787 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.149958' WHERE "spree_products"."id" = 1060500710  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500710  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834989], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500710, "updated_at" = '2012-10-15 15:46:02.155163' WHERE "spree_product_properties"."id" = 1073273244 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834988], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500710, "updated_at" = '2012-10-15 15:46:02.156956' WHERE "spree_product_properties"."id" = 1073273245 Created New ProductProperty # Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834990], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500710, "updated_at" = '2012-10-15 15:46:02.160622' WHERE "spree_product_properties"."id" = 1073273246 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500710) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451542 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451542], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500710 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500710, 558398572) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398566 AND "spree_taxons"."taxonomy_id" = 854451539 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500710, 558398567)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500710, 558398566) Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500710) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500710 AND "spree_option_types"."id" = 935339190 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500710) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339190], ["position", 1], ["product_id", 1060500710], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.180511' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.181639' WHERE "spree_products"."id" = 1060500710  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589788, 979460106) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.183983' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.185284' WHERE "spree_products"."id" = 1060500710  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589789, 979460107) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339190 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.188262' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.189167' WHERE "spree_products"."id" = 1060500710  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589790, 979460108) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500710]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500710 AND "spree_option_types"."id" = 935339191 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500710) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339191], ["position", 2], ["product_id", 1060500710], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339191 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339191) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339191], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.198869' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.200149' WHERE "spree_products"."id" = 1060500710  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589791, 979460109) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339191 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339191) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "colour"], ["option_type_id", 935339191], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.215727' WHERE "spree_products"."id" = 1060500710 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500710], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.219894' WHERE "spree_products"."id" = 1060500710  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589792, 979460110) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500710]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500710) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589788 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589789 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589790 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589791 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589792 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500710) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.235142' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589788 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.236601' WHERE "spree_products"."id" = 1060500710 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.237523' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589789 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.238701' WHERE "spree_products"."id" = 1060500710 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.239877' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589790 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.240597' WHERE "spree_products"."id" = 1060500710 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.241450' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589791 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.242115' WHERE "spree_products"."id" = 1060500710 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500710 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.243396' WHERE "spree_products"."id" = 1060500710  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589792 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.244119' WHERE "spree_products"."id" = 1060500710 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500710) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500710 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.6ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:46:02.246891' WHERE "spree_products"."id" = 1060500710 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500710 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.4ms) commit transaction Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500708 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500708 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500709 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500709 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398566 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451539 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398570 LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398570 ORDER BY "lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398571 ORDER BY "lft" SQL (3.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.7ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (3.0ms) DELETE FROM "spree_product_properties" SQL (2.8ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451543], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (4.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451543], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) begin transaction  (0.4ms) UPDATE "spree_taxons" SET "parent_id" = 558398573, "updated_at" = '2012-10-15 15:46:02.336439' WHERE "spree_taxons"."id" = 558398574 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398573]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398574]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398574 THEN 558398573 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398573]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398574]]  (1.8ms) commit transaction  (1.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398573 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.436951' WHERE "spree_products"."id" = 1060500711 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500711], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.439566' WHERE "spree_products"."id" = 1060500711  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589793 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.440927' WHERE "spree_products"."id" = 1060500711  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500711  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834991], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500711, "updated_at" = '2012-10-15 15:46:02.448287' WHERE "spree_product_properties"."id" = 1073273247 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500711 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500711, 558398573) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451544 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (3.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451544], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500711, 558398575) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500711 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500711) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339192], ["position", 1], ["product_id", 1060500711], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339192) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339192], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (2.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.482111' WHERE "spree_products"."id" = 1060500711 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500711], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.485256' WHERE "spree_products"."id" = 1060500711  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589794, 979460111) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500711]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500711 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339192) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339192], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.496728' WHERE "spree_products"."id" = 1060500711 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500711], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.501481' WHERE "spree_products"."id" = 1060500711  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589795, 979460112) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500711]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500711 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (1.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339192) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339192], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.515524' WHERE "spree_products"."id" = 1060500711 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500711], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.516850' WHERE "spree_products"."id" = 1060500711  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589796, 979460113) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500711]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589794 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589795 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589796 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.534516' WHERE "spree_products"."id" = 1060500711  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589794 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.535428' WHERE "spree_products"."id" = 1060500711 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.536656' WHERE "spree_products"."id" = 1060500711  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589795 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.537826' WHERE "spree_products"."id" = 1060500711 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.539002' WHERE "spree_products"."id" = 1060500711  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589796 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.541159' WHERE "spree_products"."id" = 1060500711 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500711) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500711 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:46:02.544268' WHERE "spree_products"."id" = 1060500711 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500711 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.553389' WHERE "spree_products"."id" = 1060500712 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500712], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.554495' WHERE "spree_products"."id" = 1060500712  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589797 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.556164' WHERE "spree_products"."id" = 1060500712  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500712  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834992], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500712, "updated_at" = '2012-10-15 15:46:02.562894' WHERE "spree_product_properties"."id" = 1073273248 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500712 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500712, 558398573) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451545 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451545], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500712, 558398576) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398573 AND "spree_taxons"."taxonomy_id" = 854451543 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398573]] SQL (1.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398573], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451543], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398573]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398577]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398577 THEN 558398573 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398573]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398577]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398577 AND "spree_taxons"."taxonomy_id" = 854451543 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398577]] SQL (1.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398577], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451543], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398577]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398578]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398578 THEN 558398577 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398577]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398578]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500712, 558398577)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500712, 558398578) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500712 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500712) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339192], ["position", 1], ["product_id", 1060500712], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.609685' WHERE "spree_products"."id" = 1060500712 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500712], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.610940' WHERE "spree_products"."id" = 1060500712  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589798, 979460111) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500712]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500712 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.620127' WHERE "spree_products"."id" = 1060500712 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500712], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.621289' WHERE "spree_products"."id" = 1060500712  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589799, 979460112) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500712]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500712 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.629081' WHERE "spree_products"."id" = 1060500712 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500712], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.630044' WHERE "spree_products"."id" = 1060500712  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589800, 979460113) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500712]] Current value to assign : Current value to assign : Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589798 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589799 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589800 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.645400' WHERE "spree_products"."id" = 1060500712  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589798 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.646421' WHERE "spree_products"."id" = 1060500712 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.648642' WHERE "spree_products"."id" = 1060500712  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589799 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.649435' WHERE "spree_products"."id" = 1060500712 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.650338' WHERE "spree_products"."id" = 1060500712  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589800 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.651452' WHERE "spree_products"."id" = 1060500712 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500712) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500712 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:46:02.654772' WHERE "spree_products"."id" = 1060500712 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500712 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (2.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.665859' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.667025' WHERE "spree_products"."id" = 1060500713  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589801 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.668427' WHERE "spree_products"."id" = 1060500713  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500713  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834993], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500713, "updated_at" = '2012-10-15 15:46:02.675290' WHERE "spree_product_properties"."id" = 1073273249 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834992], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500713, "updated_at" = '2012-10-15 15:46:02.678563' WHERE "spree_product_properties"."id" = 1073273250 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834994], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500713, "updated_at" = '2012-10-15 15:46:02.682567' WHERE "spree_product_properties"."id" = 1073273251 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451546 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451546], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500713 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500713, 558398579) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398573 AND "spree_taxons"."taxonomy_id" = 854451543 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500713, 558398574)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500713, 558398573) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500713 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500713) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339192], ["position", 1], ["product_id", 1060500713], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.706122' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.707279' WHERE "spree_products"."id" = 1060500713  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589802, 979460111) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500713]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500713 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.712872' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.713964' WHERE "spree_products"."id" = 1060500713  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589803, 979460112) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500713]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500713 AND "spree_option_types"."id" = 935339192 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339192 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.721802' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.722910' WHERE "spree_products"."id" = 1060500713  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589804, 979460113) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500713]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500713 AND "spree_option_types"."id" = 935339193 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500713) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["option_type_id", 935339193], ["position", 2], ["product_id", 1060500713], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339193 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339193) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339193], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.734902' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.736107' WHERE "spree_products"."id" = 1060500713  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589805, 979460114) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500713]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500713 AND "spree_option_types"."id" = 935339193 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339193 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339193) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "colour"], ["option_type_id", 935339193], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.745291' WHERE "spree_products"."id" = 1060500713 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500713], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.746430' WHERE "spree_products"."id" = 1060500713  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589806, 979460115) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500713]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589802 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589803 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589804 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589805 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589806 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.759648' WHERE "spree_products"."id" = 1060500713  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589802 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.760744' WHERE "spree_products"."id" = 1060500713 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.761613' WHERE "spree_products"."id" = 1060500713  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589803 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.762291' WHERE "spree_products"."id" = 1060500713 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.763697' WHERE "spree_products"."id" = 1060500713  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589804 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.764498' WHERE "spree_products"."id" = 1060500713 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.765609' WHERE "spree_products"."id" = 1060500713  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589805 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.766487' WHERE "spree_products"."id" = 1060500713 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500713 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.767339' WHERE "spree_products"."id" = 1060500713  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589806 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.768041' WHERE "spree_products"."id" = 1060500713 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500713) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500713 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:46:02.770478' WHERE "spree_products"."id" = 1060500713 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500713 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.0ms) commit transaction Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (57.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500711 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500711 Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500712 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500712 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398573 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451543 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398577 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398577 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398578 ORDER BY "lft" SQL (5.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (3.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (3.1ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451547], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (2.8ms) commit transaction  (0.3ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451547], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]]  (2.1ms) commit transaction  (0.4ms) begin transaction  (0.2ms) UPDATE "spree_taxons" SET "parent_id" = 558398580, "updated_at" = '2012-10-15 15:46:02.933012' WHERE "spree_taxons"."id" = 558398581 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398580]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398581]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398581 THEN 558398580 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398580]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398581]]  (1.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.3ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398580 ORDER BY "lft"  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.968839' WHERE "spree_products"."id" = 1060500714 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500714], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.970241' WHERE "spree_products"."id" = 1060500714  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589807 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:02.971294' WHERE "spree_products"."id" = 1060500714  (0.9ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500714  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["product_id", nil], ["property_id", 905834995], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500714, "updated_at" = '2012-10-15 15:46:02.978190' WHERE "spree_product_properties"."id" = 1073273252 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500714 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500714, 558398580) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451548 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451548], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500714, 558398582) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:46:02 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500714 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500714) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["option_type_id", 935339194], ["position", 1], ["product_id", 1060500714], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339194) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339194], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.004430' WHERE "spree_products"."id" = 1060500714 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500714], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.006226' WHERE "spree_products"."id" = 1060500714  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589808, 979460116) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500714]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (3.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500714 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339194) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339194], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.018145' WHERE "spree_products"."id" = 1060500714 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500714], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.019294' WHERE "spree_products"."id" = 1060500714  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589809, 979460117) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500714]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500714 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339194) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339194], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.029587' WHERE "spree_products"."id" = 1060500714 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500714], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.030691' WHERE "spree_products"."id" = 1060500714  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589810, 979460118) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500714]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.9ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589808 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589809 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589810 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.047172' WHERE "spree_products"."id" = 1060500714  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589808 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.048245' WHERE "spree_products"."id" = 1060500714 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.049372' WHERE "spree_products"."id" = 1060500714  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589809 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.050165' WHERE "spree_products"."id" = 1060500714 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.051079' WHERE "spree_products"."id" = 1060500714  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589810 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.051933' WHERE "spree_products"."id" = 1060500714 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500714) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500714 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:46:03.055114' WHERE "spree_products"."id" = 1060500714 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.062684' WHERE "spree_products"."id" = 1060500715 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500715], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.148876' WHERE "spree_products"."id" = 1060500715  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589811 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.151404' WHERE "spree_products"."id" = 1060500715  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500715  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["product_id", nil], ["property_id", 905834996], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500715, "updated_at" = '2012-10-15 15:46:03.158673' WHERE "spree_product_properties"."id" = 1073273253 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500715 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500715, 558398580) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451549 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451549], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500715, 558398583) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398580 AND "spree_taxons"."taxonomy_id" = 854451547 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398580]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398580], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451547], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398580]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398584]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398584 THEN 558398580 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398580]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398584]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398584 AND "spree_taxons"."taxonomy_id" = 854451547 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398584]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398584], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451547], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398584]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398585]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398585 THEN 558398584 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398584]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398585]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500715, 558398584)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500715, 558398585) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500715 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500715) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["option_type_id", 935339194], ["position", 1], ["product_id", 1060500715], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.198653' WHERE "spree_products"."id" = 1060500715 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500715], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.199560' WHERE "spree_products"."id" = 1060500715  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589812, 979460116) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500715]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500715 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (3.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.206250' WHERE "spree_products"."id" = 1060500715 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500715], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.211689' WHERE "spree_products"."id" = 1060500715  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589813, 979460117) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500715]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500715 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.222297' WHERE "spree_products"."id" = 1060500715 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500715], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.223491' WHERE "spree_products"."id" = 1060500715  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589814, 979460118) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500715]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589812 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589813 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589814 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.245563' WHERE "spree_products"."id" = 1060500715  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589812 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.246639' WHERE "spree_products"."id" = 1060500715 Spree::Product Load (67.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.315094' WHERE "spree_products"."id" = 1060500715  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589813 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.316048' WHERE "spree_products"."id" = 1060500715 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.317084' WHERE "spree_products"."id" = 1060500715  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589814 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.317981' WHERE "spree_products"."id" = 1060500715 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500715) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500715 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:46:03.321039' WHERE "spree_products"."id" = 1060500715 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (1.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.329539' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.330629' WHERE "spree_products"."id" = 1060500716  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589815 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.332298' WHERE "spree_products"."id" = 1060500716  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500716  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["product_id", nil], ["property_id", 905834997], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500716, "updated_at" = '2012-10-15 15:46:03.337841' WHERE "spree_product_properties"."id" = 1073273254 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["product_id", nil], ["property_id", 905834996], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500716, "updated_at" = '2012-10-15 15:46:03.340652' WHERE "spree_product_properties"."id" = 1073273255 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["product_id", nil], ["property_id", 905834998], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500716, "updated_at" = '2012-10-15 15:46:03.343813' WHERE "spree_product_properties"."id" = 1073273256 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451550 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451550], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500716 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500716, 558398586) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398580 AND "spree_taxons"."taxonomy_id" = 854451547 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500716, 558398581)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500716, 558398580) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500716 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500716) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["option_type_id", 935339194], ["position", 1], ["product_id", 1060500716], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.364138' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.365848' WHERE "spree_products"."id" = 1060500716  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589816, 979460116) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500716]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500716 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.372697' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.373700' WHERE "spree_products"."id" = 1060500716  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589817, 979460117) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500716]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::OptionType Load (2.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500716 AND "spree_option_types"."id" = 935339194 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339194 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.382082' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.383283' WHERE "spree_products"."id" = 1060500716  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589818, 979460118) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500716]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500716 AND "spree_option_types"."id" = 935339195 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500716) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["option_type_id", 935339195], ["position", 2], ["product_id", 1060500716], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339195 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339195) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339195], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.394134' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.395269' WHERE "spree_products"."id" = 1060500716  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589819, 979460119) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500716]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500716 AND "spree_option_types"."id" = 935339195 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339195 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339195) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00], ["name", "colour"], ["option_type_id", 935339195], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:46:03 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.404020' WHERE "spree_products"."id" = 1060500716 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500716], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.405250' WHERE "spree_products"."id" = 1060500716  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589820, 979460120) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500716]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589816 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589817 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589818 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589819 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589820 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (3.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.562185' WHERE "spree_products"."id" = 1060500716  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589816 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.563230' WHERE "spree_products"."id" = 1060500716 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.564261' WHERE "spree_products"."id" = 1060500716  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589817 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.565479' WHERE "spree_products"."id" = 1060500716 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.566529' WHERE "spree_products"."id" = 1060500716  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589818 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.567397' WHERE "spree_products"."id" = 1060500716 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.568858' WHERE "spree_products"."id" = 1060500716  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589819 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.569952' WHERE "spree_products"."id" = 1060500716 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500716 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.571568' WHERE "spree_products"."id" = 1060500716  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589820 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:03.572561' WHERE "spree_products"."id" = 1060500716 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500716) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500716 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:46:03.575109' WHERE "spree_products"."id" = 1060500716  (829.2ms) commit transaction Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.7ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.7ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500714 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500714 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500715 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500715 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398580 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451547 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398584 LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398584 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398585 ORDER BY "lft" SQL (4.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_taxons"  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500717 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.626310' WHERE "spree_products"."id" = 1060500717 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500717], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.627709' WHERE "spree_products"."id" = 1060500717  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589821 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.628947' WHERE "spree_products"."id" = 1060500717  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500717 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500717 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500717  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500717 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398587 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398587]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398587], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398587]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398588]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398588 THEN 558398587 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398587]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398588]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500717 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500717, 558398588)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500717, 558398587) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500717) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451552 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451552], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500717, 558398589) Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500717) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589821 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500717) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:46:04.667021' WHERE "spree_products"."id" = 1060500717  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589821 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.668821' WHERE "spree_products"."id" = 1060500717 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500717 Row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "Paintings>Landscape", "WaterColour", nil, 2] succesfully SAVED : ID 1060500717 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500718 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.676119' WHERE "spree_products"."id" = 1060500718 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500718], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.677315' WHERE "spree_products"."id" = 1060500718  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589822 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.681587' WHERE "spree_products"."id" = 1060500718  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500718 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500718 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500718  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500718 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500718 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500718, 558398587) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500718) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451553 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451553], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500718, 558398590) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500718) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398587 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398587]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398587], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398587]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398591 THEN 558398587 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398587]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398591 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398591], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398591]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398592]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398592 THEN 558398591 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398592]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500718, 558398591)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500718, 558398592) Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500718) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589822 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500718) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:46:04.719609' WHERE "spree_products"."id" = 1060500718  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589822 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.720806' WHERE "spree_products"."id" = 1060500718 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500718 Row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", 100, 30, "Paintings", "Oils", "Paintings>Nature>Landscape", 5] succesfully SAVED : ID 1060500718 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500719 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.819902' WHERE "spree_products"."id" = 1060500719 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500719], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.820984' WHERE "spree_products"."id" = 1060500719  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589823 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.822576' WHERE "spree_products"."id" = 1060500719  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500719 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500719 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500719  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500719 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451554], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398593 AND "spree_taxons"."taxonomy_id" = 854451554 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398593]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398593], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451554], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398593]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398594]] SQL (1.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398594 THEN 558398593 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398593]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398594]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500719 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500719, 558398594)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500719, 558398593) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500719) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451555 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451555], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500719, 558398595) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500719) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589823 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500719) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:46:04.899713' WHERE "spree_products"."id" = 1060500719  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589823 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.901660' WHERE "spree_products"."id" = 1060500719 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500719 Row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "Drawings>Landscape", "Landscape", nil, 7] succesfully SAVED : ID 1060500719 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:04 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500720 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.909601' WHERE "spree_products"."id" = 1060500720 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500720], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.910721' WHERE "spree_products"."id" = 1060500720  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589824 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:04.912179' WHERE "spree_products"."id" = 1060500720  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500720 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500720 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500720  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500720 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398593 AND "spree_taxons"."taxonomy_id" = 854451554 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500720 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398594)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398593) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500720) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398587 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398591 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1  (1.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398591], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398591]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398596]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398596 THEN 558398591 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398591]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398596]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398596 AND "spree_taxons"."taxonomy_id" = 854451551 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398596]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398596], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451551], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398596]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398597]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398597 THEN 558398596 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398596]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398597]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398591)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398596)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398597)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500720, 558398587) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500720) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589824 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500720) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:46:05.033748' WHERE "spree_products"."id" = 1060500720  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589824 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.035319' WHERE "spree_products"."id" = 1060500720 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500720 Row ["test_ct_004", "Demo four", "blah", "2012-07-01", 0.34, 0.01, "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", 3] succesfully SAVED : ID 1060500720 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500721 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.042264' WHERE "spree_products"."id" = 1060500721 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500721], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.043820' WHERE "spree_products"."id" = 1060500721  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589825 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.045377' WHERE "spree_products"."id" = 1060500721  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500721 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500721 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500721  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500721 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398593 AND "spree_taxons"."taxonomy_id" = 854451554 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398594 AND "spree_taxons"."taxonomy_id" = 854451554 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398594]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398594], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451554], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398594]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398598]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398598 THEN 558398594 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398594]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398598]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500721 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500721, 558398594)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500721, 558398598)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500721, 558398593) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500721) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451553 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500721, 558398590) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500721) LIMIT 1 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589825 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500721) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:46:05.069156' WHERE "spree_products"."id" = 1060500721  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589825 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.070751' WHERE "spree_products"."id" = 1060500721 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500721 Row ["test_ct_005", "Demo five", "blah", "2012-07-01", 3.34, 3.01, "Drawings>Landscape>Bristol", "Oils", nil, 3] succesfully SAVED : ID 1060500721 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451552 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451553 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451555 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451551 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398587 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398587) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398591 ORDER BY "lft"  (0.3ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398591) Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398591) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398587 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398591 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398596 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398597 ORDER BY "lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398596) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (99.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451554 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398594 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398594 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398598 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398598) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451553 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451553 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398590 ORDER BY "lft" Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451555 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451555 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398595 ORDER BY "lft" SQL (5.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.5ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (2.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500722 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.270876' WHERE "spree_products"."id" = 1060500722 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500722], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.272087' WHERE "spree_products"."id" = 1060500722  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589826 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.273214' WHERE "spree_products"."id" = 1060500722  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500722 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500722 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500722  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500722 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398599 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398599]] SQL (1.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398599], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398599]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398600]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398600 THEN 558398599 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398599]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398600]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500722 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500722, 558398600)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500722, 558398599) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500722) LIMIT 1 Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451557 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451557], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500722, 558398601) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500722) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589826 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "Paintings>Landscape", "WaterColour", nil, "2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500722) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:46:05.302804' WHERE "spree_products"."id" = 1060500722  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589826 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.304500' WHERE "spree_products"."id" = 1060500722 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500722 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500723 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.310792' WHERE "spree_products"."id" = 1060500723 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500723], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.339309' WHERE "spree_products"."id" = 1060500723  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589827 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.340770' WHERE "spree_products"."id" = 1060500723  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500723 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500723 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500723  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500723 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500723 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500723, 558398599) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500723) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451558 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451558], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500723, 558398602) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500723) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398599 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398599]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398599], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398599]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398603 THEN 558398599 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398599]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398603 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398603], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398603]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398604]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398604 THEN 558398603 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398604]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500723, 558398603)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500723, 558398604) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500723) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589827 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", "100.00", "30.00", "Paintings", "Oils", "Paintings>Nature>Landscape", "5"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500723) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:46:05.371628' WHERE "spree_products"."id" = 1060500723  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589827 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.373324' WHERE "spree_products"."id" = 1060500723 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500723 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500724 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.379936' WHERE "spree_products"."id" = 1060500724 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500724], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.381462' WHERE "spree_products"."id" = 1060500724  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589828 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.384213' WHERE "spree_products"."id" = 1060500724  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500724 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500724 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500724  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500724 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451559], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398605 AND "spree_taxons"."taxonomy_id" = 854451559 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398605]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398605], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451559], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398605]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398606]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398606 THEN 558398605 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398605]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398606]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500724 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500724, 558398606)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500724, 558398605) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500724) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451560 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451560], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500724, 558398607) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500724) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589828 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "Drawings>Landscape", "Landscape", nil, "7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500724) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:46:05.418739' WHERE "spree_products"."id" = 1060500724  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589828 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.420139' WHERE "spree_products"."id" = 1060500724 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500724 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500725 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.428001' WHERE "spree_products"."id" = 1060500725 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500725], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.429302' WHERE "spree_products"."id" = 1060500725  (1.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589829 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.431788' WHERE "spree_products"."id" = 1060500725  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500725 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500725 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500725  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500725 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398605 AND "spree_taxons"."taxonomy_id" = 854451559 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500725 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398606)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398605) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500725) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398599 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398603 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398603], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398603]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398608]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398608 THEN 558398603 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398603]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398608]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398608 AND "spree_taxons"."taxonomy_id" = 854451556 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398608]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398608], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451556], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398608]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398609]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398609 THEN 558398608 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398608]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398609]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398603)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398608)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398609)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500725, 558398599) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500725) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589829 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_004", "Demo four", "blah", "2012-07-01", "0.34", "0.01", "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500725) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:46:05.525832' WHERE "spree_products"."id" = 1060500725  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589829 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.527325' WHERE "spree_products"."id" = 1060500725 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500725 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500726 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.533610' WHERE "spree_products"."id" = 1060500726 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500726], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.534643' WHERE "spree_products"."id" = 1060500726  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589830 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.535714' WHERE "spree_products"."id" = 1060500726  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500726 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500726 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500726  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500726 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (183.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398605 AND "spree_taxons"."taxonomy_id" = 854451559 LIMIT 1 Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398606 AND "spree_taxons"."taxonomy_id" = 854451559 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398606]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398606], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451559], ["updated_at", Mon, 15 Oct 2012 15:46:05 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398606]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398610]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398610 THEN 558398606 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398606]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398610]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500726 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500726, 558398606)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500726, 558398610)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500726, 558398605) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500726) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451558 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500726, 558398602) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500726) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589830 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_005", "Demo five", "blah", "2012-07-01", "3.34", "3.01", "Drawings>Landscape>Bristol", "Oils", nil, "3"] to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500726) LIMIT 1  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:46:05.747660' WHERE "spree_products"."id" = 1060500726  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013589830 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:46:05.750048' WHERE "spree_products"."id" = 1060500726 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500726  (9.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451557 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451558 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451560 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons"  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451556 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398599 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398599) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398603 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398603) Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398603) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398599 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398603 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398608 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398609 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398608) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451559 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398606 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398606 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398610 ORDER BY "lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398610) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451558 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451558 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398602 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451560 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451560 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398607 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (8.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones" SQL (3.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.7ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones" SQL (3.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (3.0ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (2.2ms) DELETE FROM "spree_zones" SQL (74.4ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.2ms) DELETE FROM "spree_option_values" SQL (2.3ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (2.3ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones" SQL (1.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.2ms) DELETE FROM "spree_option_types" SQL (1.3ms) DELETE FROM "spree_option_values" SQL (1.2ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.5ms) DELETE FROM "spree_taxons" SQL (1.2ms) DELETE FROM "spree_taxonomies" SQL (3.3ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (2.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction  (0.0ms) commit transaction SQL (1.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.2ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.2ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction  (0.0ms) commit transaction Booted Spree using version 1.1.3 SQL (5.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (2.7ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (3.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (43.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451561 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451561], ["updated_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451561], ["updated_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00]]  (4.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451561], ["updated_at", Mon, 15 Oct 2012 15:54:25 UTC +00:00]]  (1.9ms) commit transaction ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (36.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (2.7ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (2.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.8ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451562 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451562], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451562], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451562], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (3.0ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product SQL (2.4ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (21.3ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451563 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451563], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451563], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (3.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451563], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00]]  (2.2ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (4.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (24.2ms) DELETE FROM "spree_product_properties" SQL (3.4ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.1ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (1.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.8ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 27 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 27 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 28 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 28 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 29 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 29 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:54:26 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 30 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 30 Current value to assign : Current value to assign :  (4.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (23.4ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 31 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.0ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 32 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 33 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 34  (5.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.7ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (21.2ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.7ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (2.6ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (2.5ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (3.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.6ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500727 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.304983' WHERE "spree_products"."id" = 1060500727 SQL (1.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500727], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.308767' WHERE "spree_products"."id" = 1060500727  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589831 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.311501' WHERE "spree_products"."id" = 1060500727  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500727 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500727 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500727  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500727 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589831 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500727) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (2.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500727 AND "spree_option_types"."id" = 935339196 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500727) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339196], ["position", 1], ["product_id", 1060500727], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500727) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:54:27.431842' WHERE "spree_products"."id" = 1060500727  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589831 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.433752' WHERE "spree_products"."id" = 1060500727 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500727 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500727 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500728 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.440419' WHERE "spree_products"."id" = 1060500728 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500728], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.441946' WHERE "spree_products"."id" = 1060500728  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589832 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.443310' WHERE "spree_products"."id" = 1060500728  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500728 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500728 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500728  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500728 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589832 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500728) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500728 AND "spree_option_types"."id" = 935339196 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500728) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339196], ["position", 1], ["product_id", 1060500728], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500728) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:54:27.454041' WHERE "spree_products"."id" = 1060500728  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589832 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.456018' WHERE "spree_products"."id" = 1060500728 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500728 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500728 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500729 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.462180' WHERE "spree_products"."id" = 1060500729 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500729], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.463069' WHERE "spree_products"."id" = 1060500729  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589833 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.464778' WHERE "spree_products"."id" = 1060500729  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500729 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500729 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500729  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500729 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589833 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500729) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500729 AND "spree_option_types"."id" = 935339196 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500729) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339196], ["position", 1], ["product_id", 1060500729], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500729 AND "spree_option_types"."id" = 935339197 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500729) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339197], ["position", 2], ["product_id", 1060500729], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500729) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:54:27.479651' WHERE "spree_products"."id" = 1060500729  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589833 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.481103' WHERE "spree_products"."id" = 1060500729 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500729 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500729 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (2.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:54:27.491544')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:54:27.492035')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500727 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500727 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500727 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500729 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (4.9ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.4ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500730 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.628742' WHERE "spree_products"."id" = 1060500730 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500730], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.630577' WHERE "spree_products"."id" = 1060500730  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589834 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.632172' WHERE "spree_products"."id" = 1060500730  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500730 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500730 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500730  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500730 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589834 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500730) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (3.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500730 AND "spree_option_types"."id" = 935339198 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500730) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339198], ["position", 1], ["product_id", 1060500730], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500730) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-15 15:54:27.670019' WHERE "spree_products"."id" = 1060500730  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589834 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.672483' WHERE "spree_products"."id" = 1060500730 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500730 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500731 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.703310' WHERE "spree_products"."id" = 1060500731 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500731], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.704589' WHERE "spree_products"."id" = 1060500731  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589835 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.706174' WHERE "spree_products"."id" = 1060500731  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500731 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500731 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500731  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500731 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589835 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500731) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500731 AND "spree_option_types"."id" = 935339198 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500731) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339198], ["position", 1], ["product_id", 1060500731], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500731) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:54:27.718117' WHERE "spree_products"."id" = 1060500731  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589835 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.719731' WHERE "spree_products"."id" = 1060500731 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500731 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500732 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.726907' WHERE "spree_products"."id" = 1060500732 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500732], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.728400' WHERE "spree_products"."id" = 1060500732  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589836 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.729899' WHERE "spree_products"."id" = 1060500732  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500732 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500732 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500732  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500732 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589836 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500732) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500732 AND "spree_option_types"."id" = 935339198 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500732) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339198], ["position", 1], ["product_id", 1060500732], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500732 AND "spree_option_types"."id" = 935339199 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500732) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339199], ["position", 2], ["product_id", 1060500732], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500732) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-15 15:54:27.748139' WHERE "spree_products"."id" = 1060500732  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013589836 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.749720' WHERE "spree_products"."id" = 1060500732 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500732  (5.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-15 15:54:27.758268')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-15 15:54:27.758849')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500730 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (1.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500730 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500730 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500732 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (21.6ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:54:27 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500733 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.873194' WHERE "spree_products"."id" = 1060500733 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500733], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.874532' WHERE "spree_products"."id" = 1060500733  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589837 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.875851' WHERE "spree_products"."id" = 1060500733  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500733 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500733 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500733  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500733 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500733 AND "spree_option_types"."id" = 935339200 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500733) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339200], ["position", 1], ["product_id", 1060500733], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500733) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500733 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:54:27 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500734 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.911958' WHERE "spree_products"."id" = 1060500734 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500734], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.913195' WHERE "spree_products"."id" = 1060500734  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589838 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.914365' WHERE "spree_products"."id" = 1060500734  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500734 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500734 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500734  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500734 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500734 AND "spree_option_types"."id" = 935339200 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500734) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339200], ["position", 1], ["product_id", 1060500734], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500734) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500734 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 15 Oct 2012 16:54:27 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500735 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.948681' WHERE "spree_products"."id" = 1060500735 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500735], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.949844' WHERE "spree_products"."id" = 1060500735  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589839 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:27.951199' WHERE "spree_products"."id" = 1060500735  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500735 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500735 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500735  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500735 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500735 AND "spree_option_types"."id" = 935339200 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500735) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339200], ["position", 1], ["product_id", 1060500735], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500735 AND "spree_option_types"."id" = 935339201 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500735) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00], ["option_type_id", 935339201], ["position", 2], ["product_id", 1060500735], ["updated_at", Mon, 15 Oct 2012 15:54:27 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500735) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500735 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500733 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products"  SQL (21.2ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (2.3ms) DELETE FROM "spree_option_values" SQL (23.9ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (3.1ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500736 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.066337' WHERE "spree_products"."id" = 1060500736 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500736], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.067657' WHERE "spree_products"."id" = 1060500736  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589840 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.068982' WHERE "spree_products"."id" = 1060500736  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500736 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500736 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500736  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500736 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.5ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500736 AND "spree_option_types"."id" = 935339202 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500736) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339202], ["position", 1], ["product_id", 1060500736], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500736) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500736 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500737 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.107364' WHERE "spree_products"."id" = 1060500737 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500737], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.108462' WHERE "spree_products"."id" = 1060500737  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589841 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.109591' WHERE "spree_products"."id" = 1060500737  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500737 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500737 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500737  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500737 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (20.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500737 AND "spree_option_types"."id" = 935339202 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500737) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339202], ["position", 1], ["product_id", 1060500737], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500737) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500737 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500738 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.144407' WHERE "spree_products"."id" = 1060500738 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500738], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.145588' WHERE "spree_products"."id" = 1060500738  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589842 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.146919' WHERE "spree_products"."id" = 1060500738  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500738 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500738 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500738  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500738 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500738 AND "spree_option_types"."id" = 935339202 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500738) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339202], ["position", 1], ["product_id", 1060500738], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500738 AND "spree_option_types"."id" = 935339203 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500738) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339203], ["position", 2], ["product_id", 1060500738], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500738) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500738 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (3.6ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500736 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (19.7ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.5ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.309279' WHERE "spree_products"."id" = 1060500739 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500739], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.311037' WHERE "spree_products"."id" = 1060500739  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589843 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.332988' WHERE "spree_products"."id" = 1060500739  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500739  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905834999], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500739, "updated_at" = '2012-10-15 15:54:28.352834' WHERE "spree_product_properties"."id" = 1073273257 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500739) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451564 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451564], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500739 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500739, 558398620) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451565 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451565], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500739, 558398621) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500739) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500739 AND "spree_option_types"."id" = 935339204 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500739) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339204], ["position", 1], ["product_id", 1060500739], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339204) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339204], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.436433' WHERE "spree_products"."id" = 1060500739 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500739], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.437702' WHERE "spree_products"."id" = 1060500739  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589844, 979460121) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339204) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339204], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.465547' WHERE "spree_products"."id" = 1060500739 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500739], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.466724' WHERE "spree_products"."id" = 1060500739  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589845, 979460122) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339204) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339204], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.470478' WHERE "spree_products"."id" = 1060500739 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500739], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.471656' WHERE "spree_products"."id" = 1060500739  (0.6ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589846, 979460123) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500739]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500739) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589844 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589845 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589846 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500739) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.484328' WHERE "spree_products"."id" = 1060500739  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589844 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.485296' WHERE "spree_products"."id" = 1060500739 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.486624' WHERE "spree_products"."id" = 1060500739  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589845 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.487432' WHERE "spree_products"."id" = 1060500739 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500739 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.488367' WHERE "spree_products"."id" = 1060500739  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589846 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.489348' WHERE "spree_products"."id" = 1060500739 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500739) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500739 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:28.491559' WHERE "spree_products"."id" = 1060500739 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500739 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.499399' WHERE "spree_products"."id" = 1060500740 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500740], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.500413' WHERE "spree_products"."id" = 1060500740  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589847 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.501624' WHERE "spree_products"."id" = 1060500740  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500740  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905835000], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500740, "updated_at" = '2012-10-15 15:54:28.507064' WHERE "spree_product_properties"."id" = 1073273258 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500740) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451564 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500740 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500740, 558398620) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451566 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451566], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.4ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500740, 558398622) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451564 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398620 AND "spree_taxons"."taxonomy_id" = 854451564 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398620]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398620], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451564], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398620]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398623]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398623 THEN 558398620 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398620]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398623]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398623 AND "spree_taxons"."taxonomy_id" = 854451564 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398623]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398623], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451564], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398623]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398624]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398624 THEN 558398623 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398623]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398624]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500740, 558398623)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500740, 558398624) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500740) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500740 AND "spree_option_types"."id" = 935339204 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500740) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339204], ["position", 1], ["product_id", 1060500740], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.538033' WHERE "spree_products"."id" = 1060500740 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500740], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.539055' WHERE "spree_products"."id" = 1060500740  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589848, 979460121) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.541128' WHERE "spree_products"."id" = 1060500740 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500740], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.542303' WHERE "spree_products"."id" = 1060500740  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589849, 979460122) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.544552' WHERE "spree_products"."id" = 1060500740 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500740], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.545627' WHERE "spree_products"."id" = 1060500740  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589850, 979460123) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500740]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500740) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589848 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589849 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589850 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500740) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.560973' WHERE "spree_products"."id" = 1060500740  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589848 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.562369' WHERE "spree_products"."id" = 1060500740 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.563440' WHERE "spree_products"."id" = 1060500740  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589849 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.564211' WHERE "spree_products"."id" = 1060500740 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500740 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.565044' WHERE "spree_products"."id" = 1060500740  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589850 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.565932' WHERE "spree_products"."id" = 1060500740 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500740) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500740 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:28.568062' WHERE "spree_products"."id" = 1060500740 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500740 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.574306' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.575729' WHERE "spree_products"."id" = 1060500741  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589851 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.577637' WHERE "spree_products"."id" = 1060500741  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500741  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905835001], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500741, "updated_at" = '2012-10-15 15:54:28.583147' WHERE "spree_product_properties"."id" = 1073273259 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905835000], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500741, "updated_at" = '2012-10-15 15:54:28.585257' WHERE "spree_product_properties"."id" = 1073273260 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905835002], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500741, "updated_at" = '2012-10-15 15:54:28.588090' WHERE "spree_product_properties"."id" = 1073273261 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500741) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451567 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451567], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500741 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500741, 558398625) Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451564 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398620 AND "spree_taxons"."taxonomy_id" = 854451564 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398620]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398620], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451564], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398620]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398626]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398626 THEN 558398620 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398620]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398626]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500741, 558398626)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500741, 558398620) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500741) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500741 AND "spree_option_types"."id" = 935339204 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500741) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339204], ["position", 1], ["product_id", 1060500741], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.613405' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.614683' WHERE "spree_products"."id" = 1060500741  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589852, 979460121) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.616784' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.617756' WHERE "spree_products"."id" = 1060500741  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589853, 979460122) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339204 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.619788' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.620641' WHERE "spree_products"."id" = 1060500741  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589854, 979460123) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500741]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500741 AND "spree_option_types"."id" = 935339205 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500741) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339205], ["position", 2], ["product_id", 1060500741], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339205 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339205) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339205], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.631030' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.632043' WHERE "spree_products"."id" = 1060500741  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589855, 979460124) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339205 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339205) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "colour"], ["option_type_id", 935339205], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.636871' WHERE "spree_products"."id" = 1060500741 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500741], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.637921' WHERE "spree_products"."id" = 1060500741  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589856, 979460125) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500741]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500741) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589852 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589853 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589854 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589855 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589856 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500741) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.671915' WHERE "spree_products"."id" = 1060500741  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589852 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.672841' WHERE "spree_products"."id" = 1060500741 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.673958' WHERE "spree_products"."id" = 1060500741  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589853 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.674840' WHERE "spree_products"."id" = 1060500741 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.675878' WHERE "spree_products"."id" = 1060500741  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589854 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.676849' WHERE "spree_products"."id" = 1060500741 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.677865' WHERE "spree_products"."id" = 1060500741  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589855 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.679159' WHERE "spree_products"."id" = 1060500741 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500741 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.679974' WHERE "spree_products"."id" = 1060500741  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589856 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.680835' WHERE "spree_products"."id" = 1060500741 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500741) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500741 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:28.683348' WHERE "spree_products"."id" = 1060500741 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500741 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.1ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500739 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500741 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500741 SQL (2.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (1.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.842045' WHERE "spree_products"."id" = 1060500742 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500742], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.843630' WHERE "spree_products"."id" = 1060500742  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589857 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.864111' WHERE "spree_products"."id" = 1060500742  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500742  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["product_id", nil], ["property_id", 905835003], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500742, "updated_at" = '2012-10-15 15:54:28.869628' WHERE "spree_product_properties"."id" = 1073273262 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451568 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451568], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500742 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500742, 558398627) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451569 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451569], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500742, 558398628) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500742 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500742) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["option_type_id", 935339206], ["position", 1], ["product_id", 1060500742], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339206) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339206], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.902230' WHERE "spree_products"."id" = 1060500742 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500742], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.904052' WHERE "spree_products"."id" = 1060500742  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589858, 979460126) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500742]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500742 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339206) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339206], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.912079' WHERE "spree_products"."id" = 1060500742 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500742], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.913277' WHERE "spree_products"."id" = 1060500742  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589859, 979460127) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500742]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500742 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1 Spree::OptionValue Load (1.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339206) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339206], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:28 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.941039' WHERE "spree_products"."id" = 1060500742 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500742], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.941933' WHERE "spree_products"."id" = 1060500742  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589860, 979460128) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500742]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.8ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589858 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589859 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589860 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1  (1.8ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:28.999717' WHERE "spree_products"."id" = 1060500742  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589858 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.000989' WHERE "spree_products"."id" = 1060500742 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.002003' WHERE "spree_products"."id" = 1060500742  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589859 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.002823' WHERE "spree_products"."id" = 1060500742 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500742 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.003787' WHERE "spree_products"."id" = 1060500742  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589860 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.005994' WHERE "spree_products"."id" = 1060500742 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500742) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500742 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:29.008501' WHERE "spree_products"."id" = 1060500742 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500742 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.015919' WHERE "spree_products"."id" = 1060500743 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500743], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.017150' WHERE "spree_products"."id" = 1060500743  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589861 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.018176' WHERE "spree_products"."id" = 1060500743  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500743  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835004], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500743, "updated_at" = '2012-10-15 15:54:29.024082' WHERE "spree_product_properties"."id" = 1073273263 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451568 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500743 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500743, 558398627) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451570 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (1.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451570], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500743, 558398629) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451568 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398627 AND "spree_taxons"."taxonomy_id" = 854451568 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398627]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398627], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451568], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398627]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398630]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398630 THEN 558398627 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398627]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398630]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398630 AND "spree_taxons"."taxonomy_id" = 854451568 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398630]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398630], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451568], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398630]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398631]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398631 THEN 558398630 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398630]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398631]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500743, 558398630)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500743, 558398631) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500743 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500743) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339206], ["position", 1], ["product_id", 1060500743], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.058235' WHERE "spree_products"."id" = 1060500743 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500743], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.059522' WHERE "spree_products"."id" = 1060500743  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589862, 979460126) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500743]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500743 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.066029' WHERE "spree_products"."id" = 1060500743 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500743], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.067023' WHERE "spree_products"."id" = 1060500743  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589863, 979460127) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500743]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500743 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.073492' WHERE "spree_products"."id" = 1060500743 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500743], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.074378' WHERE "spree_products"."id" = 1060500743  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589864, 979460128) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500743]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589862 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589863 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589864 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.088448' WHERE "spree_products"."id" = 1060500743  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589862 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.089516' WHERE "spree_products"."id" = 1060500743 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.090849' WHERE "spree_products"."id" = 1060500743  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589863 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.091610' WHERE "spree_products"."id" = 1060500743 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500743 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.092610' WHERE "spree_products"."id" = 1060500743  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589864 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.093395' WHERE "spree_products"."id" = 1060500743 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500743) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500743 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:29.095338' WHERE "spree_products"."id" = 1060500743 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500743 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.102016' WHERE "spree_products"."id" = 1060500744 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.103048' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589865 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.104610' WHERE "spree_products"."id" = 1060500744  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500744  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835005], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500744, "updated_at" = '2012-10-15 15:54:29.109870' WHERE "spree_product_properties"."id" = 1073273264 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835004], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500744, "updated_at" = '2012-10-15 15:54:29.112486' WHERE "spree_product_properties"."id" = 1073273265 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835006], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500744, "updated_at" = '2012-10-15 15:54:29.116074' WHERE "spree_product_properties"."id" = 1073273266 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451571 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451571], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500744 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500744, 558398632) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451568 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398627 AND "spree_taxons"."taxonomy_id" = 854451568 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398627]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398627], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451568], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398627]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398633]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398633 THEN 558398627 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398627]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398633]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500744, 558398633)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500744, 558398627) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500744 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500744) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339206], ["position", 1], ["product_id", 1060500744], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.140033' WHERE "spree_products"."id" = 1060500744 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.141143' WHERE "spree_products"."id" = 1060500744  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589866, 979460126) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500744]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500744 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.147075' WHERE "spree_products"."id" = 1060500744 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.148215' WHERE "spree_products"."id" = 1060500744  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589867, 979460127) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500744]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500744 AND "spree_option_types"."id" = 935339206 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339206 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.154013' WHERE "spree_products"."id" = 1060500744 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.154906' WHERE "spree_products"."id" = 1060500744  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589868, 979460128) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500744]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500744 AND "spree_option_types"."id" = 935339207 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500744) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339207], ["position", 2], ["product_id", 1060500744], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339207 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339207) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339207], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.165215' WHERE "spree_products"."id" = 1060500744 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.166611' WHERE "spree_products"."id" = 1060500744  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589869, 979460129) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500744]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500744 AND "spree_option_types"."id" = 935339207 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339207 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339207) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "colour"], ["option_type_id", 935339207], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.174358' WHERE "spree_products"."id" = 1060500744 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500744], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.175790' WHERE "spree_products"."id" = 1060500744  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589870, 979460130) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500744]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1  (18.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589866 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589867 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589868 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589869 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589870 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.210936' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589866 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.211896' WHERE "spree_products"."id" = 1060500744 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.212868' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589867 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.214051' WHERE "spree_products"."id" = 1060500744 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.215251' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589868 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.216220' WHERE "spree_products"."id" = 1060500744 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.217253' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589869 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.218120' WHERE "spree_products"."id" = 1060500744 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500744 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.219045' WHERE "spree_products"."id" = 1060500744  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589870 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.220279' WHERE "spree_products"."id" = 1060500744 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500744) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500744 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:29.222350' WHERE "spree_products"."id" = 1060500744 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500744 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500742 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500744 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500744 SQL (3.3ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (22.2ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (3.3ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (24.3ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.4ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.1ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (22.6ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (3.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (18.7ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.9ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (24.9ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (20.2ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451572 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451572], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451572], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (3.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.6ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.747098' WHERE "spree_products"."id" = 1060500745 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500745], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.748618' WHERE "spree_products"."id" = 1060500745  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589871 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.770081' WHERE "spree_products"."id" = 1060500745  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500745  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835007], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500745, "updated_at" = '2012-10-15 15:54:29.776581' WHERE "spree_product_properties"."id" = 1073273267 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500745) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451572 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500745 Product assigned to Taxons : ["Paintings"]  (0.4ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500745, 558398634) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451573 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451573], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500745, 558398636) Current value to assign : Spree::Product Exists (3.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500745) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500745 AND "spree_option_types"."id" = 935339208 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500745) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339208], ["position", 1], ["product_id", 1060500745], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339208) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339208], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.804598' WHERE "spree_products"."id" = 1060500745 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500745], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.807105' WHERE "spree_products"."id" = 1060500745  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589872, 979460131) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339208) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339208], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.811545' WHERE "spree_products"."id" = 1060500745 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500745], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.812619' WHERE "spree_products"."id" = 1060500745  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589873, 979460132) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339208) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339208], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.835736' WHERE "spree_products"."id" = 1060500745 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500745], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.837373' WHERE "spree_products"."id" = 1060500745  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589874, 979460133) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500745]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500745) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589872 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589873 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589874 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500745) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.850314' WHERE "spree_products"."id" = 1060500745  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589872 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.851619' WHERE "spree_products"."id" = 1060500745 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.852865' WHERE "spree_products"."id" = 1060500745  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589873 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.854190' WHERE "spree_products"."id" = 1060500745 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500745 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.855862' WHERE "spree_products"."id" = 1060500745  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589874 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.856901' WHERE "spree_products"."id" = 1060500745 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500745) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:29.859153' WHERE "spree_products"."id" = 1060500745 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500745 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.866327' WHERE "spree_products"."id" = 1060500746 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500746], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.867394' WHERE "spree_products"."id" = 1060500746  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589875 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.868620' WHERE "spree_products"."id" = 1060500746  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500746  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835008], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500746, "updated_at" = '2012-10-15 15:54:29.874097' WHERE "spree_product_properties"."id" = 1073273268 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500746) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451572 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500746 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500746, 558398634) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451574 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451574], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500746, 558398637) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451572 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398634 AND "spree_taxons"."taxonomy_id" = 854451572 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398634]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398634], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451572], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398634]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398638]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398638 THEN 558398634 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398634]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398638]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398638 AND "spree_taxons"."taxonomy_id" = 854451572 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398638]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398638], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451572], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398638]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398639]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398639 THEN 558398638 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398638]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398639]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500746, 558398638)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500746, 558398639) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500746) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500746 AND "spree_option_types"."id" = 935339208 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500746) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339208], ["position", 1], ["product_id", 1060500746], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.906028' WHERE "spree_products"."id" = 1060500746 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500746], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.907313' WHERE "spree_products"."id" = 1060500746  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589876, 979460131) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.909292' WHERE "spree_products"."id" = 1060500746 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500746], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.910403' WHERE "spree_products"."id" = 1060500746  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589877, 979460132) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.913125' WHERE "spree_products"."id" = 1060500746 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500746], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.914212' WHERE "spree_products"."id" = 1060500746  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589878, 979460133) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500746]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500746) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589876 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589877 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589878 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500746) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.927079' WHERE "spree_products"."id" = 1060500746  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589876 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.928174' WHERE "spree_products"."id" = 1060500746 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.928980' WHERE "spree_products"."id" = 1060500746  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589877 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.929726' WHERE "spree_products"."id" = 1060500746 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500746 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.930593' WHERE "spree_products"."id" = 1060500746  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589878 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.931780' WHERE "spree_products"."id" = 1060500746 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500746) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:29.933621' WHERE "spree_products"."id" = 1060500746 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500746 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.939957' WHERE "spree_products"."id" = 1060500747 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.941573' WHERE "spree_products"."id" = 1060500747  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589879 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.943580' WHERE "spree_products"."id" = 1060500747  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500747  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835009], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500747, "updated_at" = '2012-10-15 15:54:29.948621' WHERE "spree_product_properties"."id" = 1073273269 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835008], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500747, "updated_at" = '2012-10-15 15:54:29.951141' WHERE "spree_product_properties"."id" = 1073273270 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["product_id", nil], ["property_id", 905835010], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500747, "updated_at" = '2012-10-15 15:54:29.953980' WHERE "spree_product_properties"."id" = 1073273271 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500747) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451575 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451575], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500747 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500747, 558398640) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451572 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398634 AND "spree_taxons"."taxonomy_id" = 854451572 LIMIT 1  (0.6ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398634]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398634], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451572], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398634]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398641]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398641 THEN 558398634 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398634]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398641]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500747, 558398641)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500747, 558398634) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500747) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500747 AND "spree_option_types"."id" = 935339208 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500747) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339208], ["position", 1], ["product_id", 1060500747], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.978301' WHERE "spree_products"."id" = 1060500747 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.979559' WHERE "spree_products"."id" = 1060500747  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589880, 979460131) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.981614' WHERE "spree_products"."id" = 1060500747 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.982621' WHERE "spree_products"."id" = 1060500747  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589881, 979460132) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339208 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.984668' WHERE "spree_products"."id" = 1060500747 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.985605' WHERE "spree_products"."id" = 1060500747  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589882, 979460133) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500747]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500747 AND "spree_option_types"."id" = 935339209 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500747) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["option_type_id", 935339209], ["position", 2], ["product_id", 1060500747], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339209 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339209) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339209], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.996008' WHERE "spree_products"."id" = 1060500747 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:29.997152' WHERE "spree_products"."id" = 1060500747  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589883, 979460134) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339209 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339209) ORDER BY position DESC LIMIT 1 SQL (1.4ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00], ["name", "colour"], ["option_type_id", 935339209], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:29 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.003020' WHERE "spree_products"."id" = 1060500747 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500747], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.003901' WHERE "spree_products"."id" = 1060500747  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589884, 979460135) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500747]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500747) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (17.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589880 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589881 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589882 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589883 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.7ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589884 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500747) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.036017' WHERE "spree_products"."id" = 1060500747  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589880 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.037188' WHERE "spree_products"."id" = 1060500747 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.038132' WHERE "spree_products"."id" = 1060500747  (1.4ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589881 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.040274' WHERE "spree_products"."id" = 1060500747 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.041380' WHERE "spree_products"."id" = 1060500747  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589882 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.042341' WHERE "spree_products"."id" = 1060500747 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.043354' WHERE "spree_products"."id" = 1060500747  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589883 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.044128' WHERE "spree_products"."id" = 1060500747 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500747 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.045669' WHERE "spree_products"."id" = 1060500747  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589884 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.046561' WHERE "spree_products"."id" = 1060500747 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500747) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:30.048774' WHERE "spree_products"."id" = 1060500747 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500747 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500746 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500747 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500745 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500745 ORDER BY spree_option_types.position Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589872 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589873 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339208 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589874 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (21.0ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.0ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451576 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451576], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (2.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451576], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (1.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.243209' WHERE "spree_products"."id" = 1060500748 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500748], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (1.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.244374' WHERE "spree_products"."id" = 1060500748  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589885 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.247021' WHERE "spree_products"."id" = 1060500748  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500748  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835011], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500748, "updated_at" = '2012-10-15 15:54:30.253876' WHERE "spree_product_properties"."id" = 1073273272 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1 Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451576 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500748 Product assigned to Taxons : ["Paintings"]  (0.8ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500748, 558398642) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451577 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451577], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500748, 558398644) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500748 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500748) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339210], ["position", 1], ["product_id", 1060500748], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339210) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339210], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.283950' WHERE "spree_products"."id" = 1060500748 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500748], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.284959' WHERE "spree_products"."id" = 1060500748  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589886, 979460136) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500748]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500748 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339210) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339210], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.293447' WHERE "spree_products"."id" = 1060500748 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500748], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.294625' WHERE "spree_products"."id" = 1060500748  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589887, 979460137) Spree::Product Load (18.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500748]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500748 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339210) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339210], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.324495' WHERE "spree_products"."id" = 1060500748 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500748], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.325460' WHERE "spree_products"."id" = 1060500748  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589888, 979460138) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500748]] Current value to assign : Current value to assign : Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589886 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589887 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589888 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.341714' WHERE "spree_products"."id" = 1060500748  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589886 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.342532' WHERE "spree_products"."id" = 1060500748 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.343482' WHERE "spree_products"."id" = 1060500748  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589887 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.344868' WHERE "spree_products"."id" = 1060500748 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500748 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.345674' WHERE "spree_products"."id" = 1060500748  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589888 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.346584' WHERE "spree_products"."id" = 1060500748 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500748) LIMIT 1  (0.7ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:30.349532' WHERE "spree_products"."id" = 1060500748 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500748 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.356678' WHERE "spree_products"."id" = 1060500749 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500749], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.357588' WHERE "spree_products"."id" = 1060500749  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589889 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.358515' WHERE "spree_products"."id" = 1060500749  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500749  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.9ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835012], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500749, "updated_at" = '2012-10-15 15:54:30.365626' WHERE "spree_product_properties"."id" = 1073273273 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451576 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500749 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500749, 558398642) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451578 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451578], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500749, 558398645) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451576 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398642 AND "spree_taxons"."taxonomy_id" = 854451576 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398642]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398642], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451576], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398642]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398646]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398646 THEN 558398642 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398642]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398646]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398646 AND "spree_taxons"."taxonomy_id" = 854451576 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398646]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398646], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451576], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398646]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398647]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398647 THEN 558398646 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.5ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398646]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398647]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500749, 558398646)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500749, 558398647) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500749 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500749) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339210], ["position", 1], ["product_id", 1060500749], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.401822' WHERE "spree_products"."id" = 1060500749 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500749], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.403215' WHERE "spree_products"."id" = 1060500749  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589890, 979460136) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500749]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500749 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.411067' WHERE "spree_products"."id" = 1060500749 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500749], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.412283' WHERE "spree_products"."id" = 1060500749  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589891, 979460137) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500749]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500749 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.418627' WHERE "spree_products"."id" = 1060500749 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500749], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.420016' WHERE "spree_products"."id" = 1060500749  (1.7ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589892, 979460138) Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500749]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589890 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589891 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589892 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.479711' WHERE "spree_products"."id" = 1060500749  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589890 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.480506' WHERE "spree_products"."id" = 1060500749 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.481575' WHERE "spree_products"."id" = 1060500749  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589891 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.482627' WHERE "spree_products"."id" = 1060500749 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500749 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.483815' WHERE "spree_products"."id" = 1060500749  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589892 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.484745' WHERE "spree_products"."id" = 1060500749 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500749) LIMIT 1  (0.5ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:30.487300' WHERE "spree_products"."id" = 1060500749 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500749 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.494213' WHERE "spree_products"."id" = 1060500750 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.495628' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589893 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.497364' WHERE "spree_products"."id" = 1060500750  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500750  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835013], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500750, "updated_at" = '2012-10-15 15:54:30.505489' WHERE "spree_product_properties"."id" = 1073273274 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835012], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500750, "updated_at" = '2012-10-15 15:54:30.508594' WHERE "spree_product_properties"."id" = 1073273275 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835014], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500750, "updated_at" = '2012-10-15 15:54:30.512335' WHERE "spree_product_properties"."id" = 1073273276 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451579 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451579], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500750 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500750, 558398648) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451576 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398642 AND "spree_taxons"."taxonomy_id" = 854451576 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398642]] SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398642], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451576], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398642]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398649]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398649 THEN 558398642 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398642]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398649]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500750, 558398649)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500750, 558398642) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500750 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500750) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339210], ["position", 1], ["product_id", 1060500750], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.537628' WHERE "spree_products"."id" = 1060500750 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.538921' WHERE "spree_products"."id" = 1060500750  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589894, 979460136) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500750]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500750 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.545084' WHERE "spree_products"."id" = 1060500750 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.546291' WHERE "spree_products"."id" = 1060500750  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589895, 979460137) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500750]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500750 AND "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339210 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.552877' WHERE "spree_products"."id" = 1060500750 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.553791' WHERE "spree_products"."id" = 1060500750  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589896, 979460138) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500750]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500750 AND "spree_option_types"."id" = 935339211 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500750) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339211], ["position", 2], ["product_id", 1060500750], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339211 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339211) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339211], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.566009' WHERE "spree_products"."id" = 1060500750 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.567286' WHERE "spree_products"."id" = 1060500750  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589897, 979460139) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500750]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500750 AND "spree_option_types"."id" = 935339211 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339211 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339211) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "colour"], ["option_type_id", 935339211], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.576469' WHERE "spree_products"."id" = 1060500750 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500750], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.598081' WHERE "spree_products"."id" = 1060500750  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589898, 979460140) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500750]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589894 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589895 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589896 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589897 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589898 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.617155' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589894 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.618251' WHERE "spree_products"."id" = 1060500750 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.619608' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589895 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.620859' WHERE "spree_products"."id" = 1060500750 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.621694' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589896 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.622629' WHERE "spree_products"."id" = 1060500750 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.624076' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589897 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.624875' WHERE "spree_products"."id" = 1060500750 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500750 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.625598' WHERE "spree_products"."id" = 1060500750  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589898 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.626887' WHERE "spree_products"."id" = 1060500750 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500750) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:30.628891' WHERE "spree_products"."id" = 1060500750 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500750 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500749 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500750 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500748 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500748 ORDER BY spree_option_types.position Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589886 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589887 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339210 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589888 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (20.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (4.0ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.0ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451580 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451580], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451580], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (2.8ms) commit transaction  (0.0ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants"  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.755096' WHERE "spree_products"."id" = 1060500751 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500751], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.756980' WHERE "spree_products"."id" = 1060500751  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589899 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.758087' WHERE "spree_products"."id" = 1060500751  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500751  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835015], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500751, "updated_at" = '2012-10-15 15:54:30.764228' WHERE "spree_product_properties"."id" = 1073273277 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451580 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500751 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500751, 558398650) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451581 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451581], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500751, 558398652) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500751 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500751) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339212], ["position", 1], ["product_id", 1060500751], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339212) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339212], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.812727' WHERE "spree_products"."id" = 1060500751 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500751], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.814029' WHERE "spree_products"."id" = 1060500751  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589900, 979460141) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500751]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500751 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (18.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339212) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339212], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.843265' WHERE "spree_products"."id" = 1060500751 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500751], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.844217' WHERE "spree_products"."id" = 1060500751  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589901, 979460142) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500751]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500751 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339212) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339212], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.852729' WHERE "spree_products"."id" = 1060500751 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500751], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.854234' WHERE "spree_products"."id" = 1060500751  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589902, 979460143) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500751]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589900 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589901 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589902 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.871271' WHERE "spree_products"."id" = 1060500751  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589900 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.872333' WHERE "spree_products"."id" = 1060500751 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.873445' WHERE "spree_products"."id" = 1060500751  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589901 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.874436' WHERE "spree_products"."id" = 1060500751 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500751 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.876631' WHERE "spree_products"."id" = 1060500751  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589902 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.877632' WHERE "spree_products"."id" = 1060500751 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500751) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:30.880590' WHERE "spree_products"."id" = 1060500751 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.886801' WHERE "spree_products"."id" = 1060500752 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500752], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.887819' WHERE "spree_products"."id" = 1060500752  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589903 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.929633' WHERE "spree_products"."id" = 1060500752  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500752  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["product_id", nil], ["property_id", 905835016], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500752, "updated_at" = '2012-10-15 15:54:30.937020' WHERE "spree_product_properties"."id" = 1073273278 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451580 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500752 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500752, 558398650) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451582 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451582], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500752, 558398653) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451580 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398650 AND "spree_taxons"."taxonomy_id" = 854451580 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398650]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398650], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451580], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398650]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398654]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398654 THEN 558398650 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398650]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398654]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398654 AND "spree_taxons"."taxonomy_id" = 854451580 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398654]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398654], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451580], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398654]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398655]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398655 THEN 558398654 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398654]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398655]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500752, 558398654)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500752, 558398655) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500752 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500752) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00], ["option_type_id", 935339212], ["position", 1], ["product_id", 1060500752], ["updated_at", Mon, 15 Oct 2012 15:54:30 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1 Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.972505' WHERE "spree_products"."id" = 1060500752 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500752], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.973476' WHERE "spree_products"."id" = 1060500752  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589904, 979460141) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500752]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500752 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.979370' WHERE "spree_products"."id" = 1060500752 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500752], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.980566' WHERE "spree_products"."id" = 1060500752  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589905, 979460142) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500752]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500752 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.986528' WHERE "spree_products"."id" = 1060500752 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500752], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:30.987463' WHERE "spree_products"."id" = 1060500752  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589906, 979460143) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500752]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589904 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589905 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589906 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.001226' WHERE "spree_products"."id" = 1060500752  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589904 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.002348' WHERE "spree_products"."id" = 1060500752 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.003292' WHERE "spree_products"."id" = 1060500752  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589905 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.004007' WHERE "spree_products"."id" = 1060500752 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500752 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.004862' WHERE "spree_products"."id" = 1060500752  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589906 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.007896' WHERE "spree_products"."id" = 1060500752 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500752) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:31.010963' WHERE "spree_products"."id" = 1060500752 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.6ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.018068' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.019220' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589907 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.020521' WHERE "spree_products"."id" = 1060500753  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500753  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["product_id", nil], ["property_id", 905835017], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500753, "updated_at" = '2012-10-15 15:54:31.026231' WHERE "spree_product_properties"."id" = 1073273279 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["product_id", nil], ["property_id", 905835016], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["value", "Example free value"]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500753, "updated_at" = '2012-10-15 15:54:31.029571' WHERE "spree_product_properties"."id" = 1073273280 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["product_id", nil], ["property_id", 905835018], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500753, "updated_at" = '2012-10-15 15:54:31.033103' WHERE "spree_product_properties"."id" = 1073273281 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451583 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451583], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500753 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500753, 558398656) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451580 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398650 AND "spree_taxons"."taxonomy_id" = 854451580 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398650]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398650], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451580], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398650]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398657]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398657 THEN 558398650 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398650]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398657]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500753, 558398657)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500753, 558398650) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500753 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500753) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339212], ["position", 1], ["product_id", 1060500753], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.059365' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.060511' WHERE "spree_products"."id" = 1060500753  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589908, 979460141) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500753]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500753 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.067731' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.068883' WHERE "spree_products"."id" = 1060500753  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589909, 979460142) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500753]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500753 AND "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339212 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.075561' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.076453' WHERE "spree_products"."id" = 1060500753  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589910, 979460143) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500753]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500753 AND "spree_option_types"."id" = 935339213 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500753) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339213], ["position", 2], ["product_id", 1060500753], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339213 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339213) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339213], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.086928' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.087937' WHERE "spree_products"."id" = 1060500753  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589911, 979460144) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500753]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500753 AND "spree_option_types"."id" = 935339213 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339213 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339213) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "colour"], ["option_type_id", 935339213], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.095526' WHERE "spree_products"."id" = 1060500753 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500753], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.096593' WHERE "spree_products"."id" = 1060500753  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589912, 979460145) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500753]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589908 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589909 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589910 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589911 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589912 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.128367' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589908 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.129281' WHERE "spree_products"."id" = 1060500753 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.130270' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589909 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.131188' WHERE "spree_products"."id" = 1060500753 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.132079' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589910 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.133172' WHERE "spree_products"."id" = 1060500753 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.134213' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589911 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.135281' WHERE "spree_products"."id" = 1060500753 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500753 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.136468' WHERE "spree_products"."id" = 1060500753  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589912 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.137498' WHERE "spree_products"."id" = 1060500753 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500753) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:31.139597' WHERE "spree_products"."id" = 1060500753  (6.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500752 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500753 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500751 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (1.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500751 ORDER BY spree_option_types.position Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589900 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589901 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339212 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589902 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (3.0ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451584 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451584], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451584], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) begin transaction Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.220068' WHERE "spree_products"."id" = 1060500754 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500754], ["sku", "MV_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.222309' WHERE "spree_products"."id" = 1060500754  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589913 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.223409' WHERE "spree_products"."id" = 1060500754  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500754  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500754 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500754) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339214], ["position", 1], ["product_id", 1060500754], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500754 AND "spree_option_types"."id" = 935339215 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500754) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339215], ["position", 2], ["product_id", 1060500754], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339214) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339214], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339215) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "colour"], ["option_type_id", 935339215], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.303638' WHERE "spree_products"."id" = 1060500754 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500754], ["sku", "MV_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.305078' WHERE "spree_products"."id" = 1060500754  (0.7ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589914, 979460146)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589914, 979460147) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339214) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339214], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.310356' WHERE "spree_products"."id" = 1060500754 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500754], ["sku", "MV_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.311552' WHERE "spree_products"."id" = 1060500754  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589915, 979460148)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589915, 979460147) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500754]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500754) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500754 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339214) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339214], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.323449' WHERE "spree_products"."id" = 1060500754 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500754], ["sku", "MV_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.324571' WHERE "spree_products"."id" = 1060500754  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589916, 979460149) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500754]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500754) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589914 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589915 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589916 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500754) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.338957' WHERE "spree_products"."id" = 1060500754  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589914 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.340049' WHERE "spree_products"."id" = 1060500754 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.341554' WHERE "spree_products"."id" = 1060500754  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589915 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.343598' WHERE "spree_products"."id" = 1060500754 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500754 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.345146' WHERE "spree_products"."id" = 1060500754  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589916 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.346183' WHERE "spree_products"."id" = 1060500754 Saving csv row ["MV_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "mime_type:jpeg, PDF;print_type:colour", nil, "mime_type:PNG", "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500754) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:31.349026' WHERE "spree_products"."id" = 1060500754 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500755 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.356778' WHERE "spree_products"."id" = 1060500755 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500755], ["sku", "MV_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.357922' WHERE "spree_products"."id" = 1060500755  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589917 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.359193' WHERE "spree_products"."id" = 1060500755  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500755  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500755 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500755) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339214], ["position", 1], ["product_id", 1060500755], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500755 AND "spree_option_types"."id" = 935339215 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500755) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339215], ["position", 2], ["product_id", 1060500755], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339215) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339215], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500755 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.426264' WHERE "spree_products"."id" = 1060500755 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500755], ["sku", "MV_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.429006' WHERE "spree_products"."id" = 1060500755  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589918, 979460150)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589918, 979460146) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500755]] Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500755) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500755 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500755 AND "spree_option_types"."id" = 935339215 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500755 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.441939' WHERE "spree_products"."id" = 1060500755 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500755], ["sku", "MV_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.443350' WHERE "spree_products"."id" = 1060500755  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589919, 979460150)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589919, 979460149) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500755]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500755) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589918 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589919 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500755) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500755 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.453306' WHERE "spree_products"."id" = 1060500755  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589918 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.454241' WHERE "spree_products"."id" = 1060500755 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500755 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.455356' WHERE "spree_products"."id" = 1060500755  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589919 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.456215' WHERE "spree_products"."id" = 1060500755 Saving csv row ["MV_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "mime_type:jpeg;print_type:black_white", nil, "mime_type:PNG;print_type:black_white", "5|4"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500755) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500755 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-15 15:54:31.458513' WHERE "spree_products"."id" = 1060500755 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (1.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.466223' WHERE "spree_products"."id" = 1060500756 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.467118' WHERE "spree_products"."id" = 1060500756  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589920 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.468471' WHERE "spree_products"."id" = 1060500756  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500756  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500756) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339214], ["position", 1], ["product_id", 1060500756], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339215 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500756) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339215], ["position", 2], ["product_id", 1060500756], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "size"], ["position", 0], ["presentation", "Size"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339216 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500756) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339216], ["position", 3], ["product_id", 1060500756], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339216 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339216) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "large"], ["option_type_id", 935339216], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.488756' WHERE "spree_products"."id" = 1060500756 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.489902' WHERE "spree_products"."id" = 1060500756  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589921, 979460147)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589921, 979460151)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589921, 979460146) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339215) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "sepia"], ["option_type_id", 935339215], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339216 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.496550' WHERE "spree_products"."id" = 1060500756 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.497640' WHERE "spree_products"."id" = 1060500756  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589922, 979460152)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589922, 979460151)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589922, 979460146) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500756]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.526427' WHERE "spree_products"."id" = 1060500756 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.527432' WHERE "spree_products"."id" = 1060500756  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589923, 979460149) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500756]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500756) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339214 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339214 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.533989' WHERE "spree_products"."id" = 1060500756 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.535123' WHERE "spree_products"."id" = 1060500756  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589924, 979460148) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500756]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500756 AND "spree_option_types"."id" = 935339215 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339215 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500756 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.541331' WHERE "spree_products"."id" = 1060500756 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500756], ["sku", "MV_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.542326' WHERE "spree_products"."id" = 1060500756  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589925, 979460150) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500756]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500756) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row ["MV_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNG", "mime_type:PDF|print_type:black_white", nil, "12|4|7|12"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500756) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500756 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (4.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500754 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500754 ORDER BY spree_option_types.position Spree::OptionValue Load (18.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013589914 Booted Spree using version 1.1.3 SQL (24.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.691415' WHERE "spree_products"."id" = 1060500757 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500757], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.692703' WHERE "spree_products"."id" = 1060500757  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589926 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.694752' WHERE "spree_products"."id" = 1060500757  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500757  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["product_id", nil], ["property_id", 905835019], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500757, "updated_at" = '2012-10-15 15:54:31.722992' WHERE "spree_product_properties"."id" = 1073273282 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451585 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451585], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500757 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500757, 558398660) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451586 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451586], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500757, 558398661) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500757 AND "spree_option_types"."id" = 935339217 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500757) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["option_type_id", 935339217], ["position", 1], ["product_id", 1060500757], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339217) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339217], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.752993' WHERE "spree_products"."id" = 1060500757 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500757], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.755260' WHERE "spree_products"."id" = 1060500757  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589927, 979460153) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339217) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339217], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.760815' WHERE "spree_products"."id" = 1060500757 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500757], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.762203' WHERE "spree_products"."id" = 1060500757  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589928, 979460154) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339217) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339217], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.784761' WHERE "spree_products"."id" = 1060500757 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500757], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.830953' WHERE "spree_products"."id" = 1060500757  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589929, 979460155) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500757]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589927 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589928 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589929 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.843785' WHERE "spree_products"."id" = 1060500757  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589927 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.845263' WHERE "spree_products"."id" = 1060500757 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.846153' WHERE "spree_products"."id" = 1060500757  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589928 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.847059' WHERE "spree_products"."id" = 1060500757 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500757 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.848035' WHERE "spree_products"."id" = 1060500757  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589929 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:31.848644' WHERE "spree_products"."id" = 1060500757 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589926 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.6ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:31 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "14/02/2011", "399.99", "320", "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500757) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:32.688513' WHERE "spree_products"."id" = 1060500757 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.728369' WHERE "spree_products"."id" = 1060500758 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500758], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.729738' WHERE "spree_products"."id" = 1060500758  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589930 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.731118' WHERE "spree_products"."id" = 1060500758  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500758  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["product_id", nil], ["property_id", 905835020], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500758, "updated_at" = '2012-10-15 15:54:32.739835' WHERE "spree_product_properties"."id" = 1073273283 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451585 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500758 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500758, 558398660) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451587 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451587], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500758, 558398662) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451588 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451588], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500758, 558398663) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500758 AND "spree_option_types"."id" = 935339217 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500758) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["option_type_id", 935339217], ["position", 1], ["product_id", 1060500758], ["updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.768869' WHERE "spree_products"."id" = 1060500758 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500758], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.770216' WHERE "spree_products"."id" = 1060500758  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589931, 979460153) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.773060' WHERE "spree_products"."id" = 1060500758 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500758], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.774025' WHERE "spree_products"."id" = 1060500758  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589932, 979460154) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.776843' WHERE "spree_products"."id" = 1060500758 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500758], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.777628' WHERE "spree_products"."id" = 1060500758  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589933, 979460155) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500758]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.9ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589931 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589932 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589933 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.791577' WHERE "spree_products"."id" = 1060500758  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589931 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.792656' WHERE "spree_products"."id" = 1060500758 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.793651' WHERE "spree_products"."id" = 1060500758  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589932 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.794531' WHERE "spree_products"."id" = 1060500758 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500758 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.795384' WHERE "spree_products"."id" = 1060500758  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589933 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:32.796582' WHERE "spree_products"."id" = 1060500758 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589930 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:32 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "14/05/2011", "100", "30", "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500758) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500758 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:39.279419' WHERE "spree_products"."id" = 1060500758 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.315927' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.317797' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589934 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.319437' WHERE "spree_products"."id" = 1060500759  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500759  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["product_id", nil], ["property_id", 905835021], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500759, "updated_at" = '2012-10-15 15:54:39.327563' WHERE "spree_product_properties"."id" = 1073273284 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["product_id", nil], ["property_id", 905835020], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500759, "updated_at" = '2012-10-15 15:54:39.330028' WHERE "spree_product_properties"."id" = 1073273285 Created New ProductProperty # Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["product_id", nil], ["property_id", 905835022], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500759, "updated_at" = '2012-10-15 15:54:39.334087' WHERE "spree_product_properties"."id" = 1073273286 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451589 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451589], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500759 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500759, 558398664) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500759 AND "spree_option_types"."id" = 935339217 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500759) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["option_type_id", 935339217], ["position", 1], ["product_id", 1060500759], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.354359' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.355663' WHERE "spree_products"."id" = 1060500759  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589935, 979460153) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.358453' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.359607' WHERE "spree_products"."id" = 1060500759  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589936, 979460154) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339217 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.362186' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.363738' WHERE "spree_products"."id" = 1060500759  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589937, 979460155) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500759]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500759 AND "spree_option_types"."id" = 935339218 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500759) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["option_type_id", 935339218], ["position", 2], ["product_id", 1060500759], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339218 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339218) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339218], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.375914' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.377584' WHERE "spree_products"."id" = 1060500759  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589938, 979460156) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339218 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339218) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["name", "colour"], ["option_type_id", 935339218], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.382296' WHERE "spree_products"."id" = 1060500759 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500759], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.383202' WHERE "spree_products"."id" = 1060500759  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589939, 979460157) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500759]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589935 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589936 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589937 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589938 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589939 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.424460' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589935 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.425588' WHERE "spree_products"."id" = 1060500759 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.426560' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589936 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.427739' WHERE "spree_products"."id" = 1060500759 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.428875' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589937 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.429739' WHERE "spree_products"."id" = 1060500759 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.430666' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589938 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.431739' WHERE "spree_products"."id" = 1060500759 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500759 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.432647' WHERE "spree_products"."id" = 1060500759  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589939 SQL (1.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:39.433565' WHERE "spree_products"."id" = 1060500759 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589934 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:39 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "01/07/2012", "50.34", "23.34", "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500759) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500759 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:40.295535' WHERE "spree_products"."id" = 1060500759  (31.8ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500757 AND ("spree_variants".is_master = 't') LIMIT 1  (1.0ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589926) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500757)) SQL (4.1ms) DELETE FROM "spree_products" SQL (2.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.499859' WHERE "spree_products"."id" = 1060500760 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500760], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.501254' WHERE "spree_products"."id" = 1060500760  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589940 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.502679' WHERE "spree_products"."id" = 1060500760  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500760  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["product_id", nil], ["property_id", 905835023], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500760, "updated_at" = '2012-10-15 15:54:40.531136' WHERE "spree_product_properties"."id" = 1073273287 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451590 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451590], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500760 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500760, 558398665) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451591 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451591], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500760, 558398666) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500760 AND "spree_option_types"."id" = 935339219 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500760) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["option_type_id", 935339219], ["position", 1], ["product_id", 1060500760], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339219) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339219], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.555532' WHERE "spree_products"."id" = 1060500760 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500760], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.558816' WHERE "spree_products"."id" = 1060500760  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589941, 979460158) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339219) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339219], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.562985' WHERE "spree_products"."id" = 1060500760 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500760], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.564014' WHERE "spree_products"."id" = 1060500760  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589942, 979460159) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339219) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339219], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.590305' WHERE "spree_products"."id" = 1060500760 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500760], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.591780' WHERE "spree_products"."id" = 1060500760  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589943, 979460160) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500760]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589941 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589942 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589943 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.603839' WHERE "spree_products"."id" = 1060500760  (0.7ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589941 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.605541' WHERE "spree_products"."id" = 1060500760 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.606615' WHERE "spree_products"."id" = 1060500760  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589942 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.607596' WHERE "spree_products"."id" = 1060500760 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500760 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.608597' WHERE "spree_products"."id" = 1060500760  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589943 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:40.609610' WHERE "spree_products"."id" = 1060500760 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589940 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.5ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:40 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500760) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:41.545372' WHERE "spree_products"."id" = 1060500760 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500760 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.585228' WHERE "spree_products"."id" = 1060500761 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500761], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.587052' WHERE "spree_products"."id" = 1060500761  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589944 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.589042' WHERE "spree_products"."id" = 1060500761  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500761  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["product_id", nil], ["property_id", 905835024], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500761, "updated_at" = '2012-10-15 15:54:41.598537' WHERE "spree_product_properties"."id" = 1073273288 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451590 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500761 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500761, 558398665) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451592 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451592], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500761, 558398667) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451593 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451593], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500761, 558398668) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500761 AND "spree_option_types"."id" = 935339219 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500761) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["option_type_id", 935339219], ["position", 1], ["product_id", 1060500761], ["updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.625586' WHERE "spree_products"."id" = 1060500761 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500761], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.626766' WHERE "spree_products"."id" = 1060500761  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589945, 979460158) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.629670' WHERE "spree_products"."id" = 1060500761 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500761], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.630700' WHERE "spree_products"."id" = 1060500761  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589946, 979460159) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.633656' WHERE "spree_products"."id" = 1060500761 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500761], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.634749' WHERE "spree_products"."id" = 1060500761  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589947, 979460160) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500761]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (85.8ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589945 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589946 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589947 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.737751' WHERE "spree_products"."id" = 1060500761  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589945 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.742294' WHERE "spree_products"."id" = 1060500761 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.743650' WHERE "spree_products"."id" = 1060500761  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589946 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.744461' WHERE "spree_products"."id" = 1060500761 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500761 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.745299' WHERE "spree_products"."id" = 1060500761  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589947 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:41.746131' WHERE "spree_products"."id" = 1060500761 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589944 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:41 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500761) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500761 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:47.852255' WHERE "spree_products"."id" = 1060500761 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] succesfully SAVED : ID 1060500761 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.889102' WHERE "spree_products"."id" = 1060500762 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.891423' WHERE "spree_products"."id" = 1060500762  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589948 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.892995' WHERE "spree_products"."id" = 1060500762  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500762  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["product_id", nil], ["property_id", 905835025], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500762, "updated_at" = '2012-10-15 15:54:47.900845' WHERE "spree_product_properties"."id" = 1073273289 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["product_id", nil], ["property_id", 905835024], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500762, "updated_at" = '2012-10-15 15:54:47.903204' WHERE "spree_product_properties"."id" = 1073273290 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["product_id", nil], ["property_id", 905835026], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500762, "updated_at" = '2012-10-15 15:54:47.906601' WHERE "spree_product_properties"."id" = 1073273291 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451594 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451594], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500762 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500762, 558398669) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500762 AND "spree_option_types"."id" = 935339219 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500762) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["option_type_id", 935339219], ["position", 1], ["product_id", 1060500762], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.926200' WHERE "spree_products"."id" = 1060500762 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.927393' WHERE "spree_products"."id" = 1060500762  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589949, 979460158) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.929845' WHERE "spree_products"."id" = 1060500762 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.932186' WHERE "spree_products"."id" = 1060500762  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589950, 979460159) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339219 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.935034' WHERE "spree_products"."id" = 1060500762 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.935845' WHERE "spree_products"."id" = 1060500762  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589951, 979460160) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500762]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500762 AND "spree_option_types"."id" = 935339220 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500762) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["option_type_id", 935339220], ["position", 2], ["product_id", 1060500762], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339220 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339220) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339220], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.948058' WHERE "spree_products"."id" = 1060500762 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.949845' WHERE "spree_products"."id" = 1060500762  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589952, 979460161) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339220 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339220) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00], ["name", "colour"], ["option_type_id", 935339220], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.954271' WHERE "spree_products"."id" = 1060500762 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500762], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.955180' WHERE "spree_products"."id" = 1060500762  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589953, 979460162) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500762]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589949 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589950 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589951 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589952 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589953 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.995663' WHERE "spree_products"."id" = 1060500762  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589949 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.996846' WHERE "spree_products"."id" = 1060500762 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.998176' WHERE "spree_products"."id" = 1060500762  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589950 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:47.999095' WHERE "spree_products"."id" = 1060500762 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.000022' WHERE "spree_products"."id" = 1060500762  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589951 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.000846' WHERE "spree_products"."id" = 1060500762 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.002425' WHERE "spree_products"."id" = 1060500762  (0.5ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589952 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.005537' WHERE "spree_products"."id" = 1060500762 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500762 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.006724' WHERE "spree_products"."id" = 1060500762  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589953 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:48.007846' WHERE "spree_products"."id" = 1060500762 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589948 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.6ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:48 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500762) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500762 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:48.866665' WHERE "spree_products"."id" = 1060500762 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500762 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (13.2ms) commit transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500760 AND ("spree_variants".is_master = 't') LIMIT 1  (1.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589940) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500760)) SQL (4.4ms) DELETE FROM "spree_products" SQL (3.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (3.1ms) DELETE FROM "spree_variants" SQL (3.1ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (3.2ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.132468' WHERE "spree_products"."id" = 1060500763 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500763], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.133798' WHERE "spree_products"."id" = 1060500763  (21.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589954 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.156358' WHERE "spree_products"."id" = 1060500763  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500763  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835027], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500763, "updated_at" = '2012-10-15 15:54:49.163861' WHERE "spree_product_properties"."id" = 1073273292 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500763) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451595 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451595], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500763 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500763, 558398670) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451596 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451596], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500763, 558398671) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500763) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500763 AND "spree_option_types"."id" = 935339221 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500763) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339221], ["position", 1], ["product_id", 1060500763], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339221) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339221], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.192196' WHERE "spree_products"."id" = 1060500763 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500763], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.193316' WHERE "spree_products"."id" = 1060500763  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589955, 979460163) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339221) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339221], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.197837' WHERE "spree_products"."id" = 1060500763 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500763], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (1.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.198853' WHERE "spree_products"."id" = 1060500763  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589956, 979460164) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339221) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339221], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.203158' WHERE "spree_products"."id" = 1060500763 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500763], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.204252' WHERE "spree_products"."id" = 1060500763  (22.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589957, 979460165) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500763]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500763) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589955 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589956 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589957 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500763) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.238571' WHERE "spree_products"."id" = 1060500763  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589955 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.239582' WHERE "spree_products"."id" = 1060500763 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.240515' WHERE "spree_products"."id" = 1060500763  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589956 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.241344' WHERE "spree_products"."id" = 1060500763 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500763 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.242188' WHERE "spree_products"."id" = 1060500763  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589957 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.242862' WHERE "spree_products"."id" = 1060500763 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500763) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500763 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:49.245423' WHERE "spree_products"."id" = 1060500763 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500763 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.252343' WHERE "spree_products"."id" = 1060500764 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500764], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.253374' WHERE "spree_products"."id" = 1060500764  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589958 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.254601' WHERE "spree_products"."id" = 1060500764  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500764  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835028], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500764, "updated_at" = '2012-10-15 15:54:49.261289' WHERE "spree_product_properties"."id" = 1073273293 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500764) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451595 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500764 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500764, 558398670) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451597 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451597], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500764, 558398672) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451595 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398670 AND "spree_taxons"."taxonomy_id" = 854451595 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398670]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398670], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451595], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398670]] Spree::Taxon Load (0.3ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398673]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398673 THEN 558398670 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398670]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398673]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398673 AND "spree_taxons"."taxonomy_id" = 854451595 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398673]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398673], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451595], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398673]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398674]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398674 THEN 558398673 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398673]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398674]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500764, 558398673)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500764, 558398674) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500764) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500764 AND "spree_option_types"."id" = 935339221 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500764) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339221], ["position", 1], ["product_id", 1060500764], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.291633' WHERE "spree_products"."id" = 1060500764 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500764], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.292637' WHERE "spree_products"."id" = 1060500764  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589959, 979460163) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.294728' WHERE "spree_products"."id" = 1060500764 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500764], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.295862' WHERE "spree_products"."id" = 1060500764  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589960, 979460164) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.297945' WHERE "spree_products"."id" = 1060500764 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500764], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.299007' WHERE "spree_products"."id" = 1060500764  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589961, 979460165) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500764]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500764) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589959 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589960 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589961 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500764) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.312373' WHERE "spree_products"."id" = 1060500764  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589959 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.313582' WHERE "spree_products"."id" = 1060500764 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.314502' WHERE "spree_products"."id" = 1060500764  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589960 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.315250' WHERE "spree_products"."id" = 1060500764 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500764 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.316260' WHERE "spree_products"."id" = 1060500764  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589961 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.317116' WHERE "spree_products"."id" = 1060500764 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500764) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500764 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:49.319079' WHERE "spree_products"."id" = 1060500764 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500764 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.325188' WHERE "spree_products"."id" = 1060500765 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.326372' WHERE "spree_products"."id" = 1060500765  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589962 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.327520' WHERE "spree_products"."id" = 1060500765  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500765  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835029], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500765, "updated_at" = '2012-10-15 15:54:49.333116' WHERE "spree_product_properties"."id" = 1073273294 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835028], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", "Example free value"]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500765, "updated_at" = '2012-10-15 15:54:49.334863' WHERE "spree_product_properties"."id" = 1073273295 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835030], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500765, "updated_at" = '2012-10-15 15:54:49.338763' WHERE "spree_product_properties"."id" = 1073273296 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500765) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451598 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451598], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500765 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500765, 558398675) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451595 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398670 AND "spree_taxons"."taxonomy_id" = 854451595 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398670]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398670], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451595], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398670]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398676]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398676 THEN 558398670 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398670]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398676]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500765, 558398676)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500765, 558398670) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500765) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500765 AND "spree_option_types"."id" = 935339221 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500765) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339221], ["position", 1], ["product_id", 1060500765], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.363024' WHERE "spree_products"."id" = 1060500765 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.364373' WHERE "spree_products"."id" = 1060500765  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589963, 979460163) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.367642' WHERE "spree_products"."id" = 1060500765 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.368658' WHERE "spree_products"."id" = 1060500765  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589964, 979460164) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339221 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.371270' WHERE "spree_products"."id" = 1060500765 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.372351' WHERE "spree_products"."id" = 1060500765  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589965, 979460165) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500765]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500765 AND "spree_option_types"."id" = 935339222 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500765) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339222], ["position", 2], ["product_id", 1060500765], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339222 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339222) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339222], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.383464' WHERE "spree_products"."id" = 1060500765 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.384798' WHERE "spree_products"."id" = 1060500765  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589966, 979460166) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339222 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339222) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "colour"], ["option_type_id", 935339222], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.389700' WHERE "spree_products"."id" = 1060500765 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500765], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.390600' WHERE "spree_products"."id" = 1060500765  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589967, 979460167) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500765]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500765) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589963 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589964 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589965 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589966 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589967 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500765) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.428265' WHERE "spree_products"."id" = 1060500765  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589963 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.429316' WHERE "spree_products"."id" = 1060500765 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.430206' WHERE "spree_products"."id" = 1060500765  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589964 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.431315' WHERE "spree_products"."id" = 1060500765 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.432268' WHERE "spree_products"."id" = 1060500765  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589965 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.433183' WHERE "spree_products"."id" = 1060500765 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.434296' WHERE "spree_products"."id" = 1060500765  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589966 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.435314' WHERE "spree_products"."id" = 1060500765 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500765 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.436482' WHERE "spree_products"."id" = 1060500765  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589967 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.437322' WHERE "spree_products"."id" = 1060500765 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500765) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:49.440120' WHERE "spree_products"."id" = 1060500765 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500765 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.8ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500765 AND ("spree_variants".is_master = 't') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589962) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500765)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.2ms) rollback transaction SQL (4.3ms) DELETE FROM "spree_products" SQL (1.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (22.7ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.2ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.7ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.624754' WHERE "spree_products"."id" = 1060500766 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500766], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.626115' WHERE "spree_products"."id" = 1060500766  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589968 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.627426' WHERE "spree_products"."id" = 1060500766  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500766  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835031], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500766, "updated_at" = '2012-10-15 15:54:49.653760' WHERE "spree_product_properties"."id" = 1073273297 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500766) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451599 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451599], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500766 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500766, 558398677) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451600 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451600], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500766, 558398678) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500766) LIMIT 1 Spree::OptionType Load (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500766 AND "spree_option_types"."id" = 935339223 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500766) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339223], ["position", 1], ["product_id", 1060500766], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339223) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339223], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.723210' WHERE "spree_products"."id" = 1060500766 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500766], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.724449' WHERE "spree_products"."id" = 1060500766  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589969, 979460168) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339223) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339223], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.728448' WHERE "spree_products"."id" = 1060500766 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500766], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.729581' WHERE "spree_products"."id" = 1060500766  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589970, 979460169) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339223) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339223], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.733438' WHERE "spree_products"."id" = 1060500766 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500766], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.734487' WHERE "spree_products"."id" = 1060500766  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589971, 979460170) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500766]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500766) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589969 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589970 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589971 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500766) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.767830' WHERE "spree_products"."id" = 1060500766  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589969 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.768836' WHERE "spree_products"."id" = 1060500766 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.770043' WHERE "spree_products"."id" = 1060500766  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589970 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.770847' WHERE "spree_products"."id" = 1060500766 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500766 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.771681' WHERE "spree_products"."id" = 1060500766  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589971 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.772798' WHERE "spree_products"."id" = 1060500766 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500766) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500766 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:49.774984' WHERE "spree_products"."id" = 1060500766 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500766 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.783178' WHERE "spree_products"."id" = 1060500767 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500767], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.784392' WHERE "spree_products"."id" = 1060500767  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589972 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.785548' WHERE "spree_products"."id" = 1060500767  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500767  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835032], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500767, "updated_at" = '2012-10-15 15:54:49.791868' WHERE "spree_product_properties"."id" = 1073273298 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500767) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451599 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500767 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500767, 558398677) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451601 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451601], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500767, 558398679) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451599 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398677 AND "spree_taxons"."taxonomy_id" = 854451599 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398677]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398677], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451599], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398677]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398680]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398680 THEN 558398677 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398677]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398680]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398680 AND "spree_taxons"."taxonomy_id" = 854451599 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398680]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398680], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451599], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398680]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398681]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398681 THEN 558398680 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398680]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398681]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500767, 558398680)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500767, 558398681) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500767) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500767 AND "spree_option_types"."id" = 935339223 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500767) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339223], ["position", 1], ["product_id", 1060500767], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.828305' WHERE "spree_products"."id" = 1060500767 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500767], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.829252' WHERE "spree_products"."id" = 1060500767  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589973, 979460168) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.831706' WHERE "spree_products"."id" = 1060500767 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500767], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.832658' WHERE "spree_products"."id" = 1060500767  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589974, 979460169) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.834605' WHERE "spree_products"."id" = 1060500767 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500767], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.835526' WHERE "spree_products"."id" = 1060500767  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589975, 979460170) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500767]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500767) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589973 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589974 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589975 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500767) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.849298' WHERE "spree_products"."id" = 1060500767  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589973 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.850759' WHERE "spree_products"."id" = 1060500767 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.851869' WHERE "spree_products"."id" = 1060500767  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589974 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.852869' WHERE "spree_products"."id" = 1060500767 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500767 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.854292' WHERE "spree_products"."id" = 1060500767  (0.7ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589975 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.855765' WHERE "spree_products"."id" = 1060500767 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500767) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500767 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:49.858206' WHERE "spree_products"."id" = 1060500767 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500767 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.864587' WHERE "spree_products"."id" = 1060500768 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.865540' WHERE "spree_products"."id" = 1060500768  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589976 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.866661' WHERE "spree_products"."id" = 1060500768  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500768  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835033], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500768, "updated_at" = '2012-10-15 15:54:49.871869' WHERE "spree_product_properties"."id" = 1073273299 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835032], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500768, "updated_at" = '2012-10-15 15:54:49.873625' WHERE "spree_product_properties"."id" = 1073273300 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["product_id", nil], ["property_id", 905835034], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500768, "updated_at" = '2012-10-15 15:54:49.876599' WHERE "spree_product_properties"."id" = 1073273301 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500768) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451602 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451602], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500768 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500768, 558398682) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451599 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398677 AND "spree_taxons"."taxonomy_id" = 854451599 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398677]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398677], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451599], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398677]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398683]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398683 THEN 558398677 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398677]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398683]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500768, 558398683)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500768, 558398677) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500768) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500768 AND "spree_option_types"."id" = 935339223 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500768) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339223], ["position", 1], ["product_id", 1060500768], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.900077' WHERE "spree_products"."id" = 1060500768 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.901194' WHERE "spree_products"."id" = 1060500768  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589977, 979460168) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.903344' WHERE "spree_products"."id" = 1060500768 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.904372' WHERE "spree_products"."id" = 1060500768  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589978, 979460169) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339223 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.906506' WHERE "spree_products"."id" = 1060500768 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.907737' WHERE "spree_products"."id" = 1060500768  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589979, 979460170) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500768]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500768 AND "spree_option_types"."id" = 935339224 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500768) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["option_type_id", 935339224], ["position", 2], ["product_id", 1060500768], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339224 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339224) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339224], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.918434' WHERE "spree_products"."id" = 1060500768 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.919793' WHERE "spree_products"."id" = 1060500768  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589980, 979460171) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339224 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339224) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00], ["name", "colour"], ["option_type_id", 935339224], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.924441' WHERE "spree_products"."id" = 1060500768 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500768], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.925438' WHERE "spree_products"."id" = 1060500768  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589981, 979460172) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500768]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500768) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589977 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589978 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589979 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589980 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589981 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500768) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.959371' WHERE "spree_products"."id" = 1060500768  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589977 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.960576' WHERE "spree_products"."id" = 1060500768 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.961570' WHERE "spree_products"."id" = 1060500768  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589978 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.962709' WHERE "spree_products"."id" = 1060500768 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.963563' WHERE "spree_products"."id" = 1060500768  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589979 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.964438' WHERE "spree_products"."id" = 1060500768 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.965232' WHERE "spree_products"."id" = 1060500768  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589980 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.966196' WHERE "spree_products"."id" = 1060500768 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500768 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.967268' WHERE "spree_products"."id" = 1060500768  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013589981 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:49.968077' WHERE "spree_products"."id" = 1060500768 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500768) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.4ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:54:49.970618' WHERE "spree_products"."id" = 1060500768 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500768 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (20.1ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500768 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013589976) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500768)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.1ms) rollback transaction SQL (3.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (22.3ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (1.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.151751' WHERE "spree_products"."id" = 1060500769 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500769], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.153405' WHERE "spree_products"."id" = 1060500769  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589982 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.154672' WHERE "spree_products"."id" = 1060500769  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500769  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["product_id", nil], ["property_id", 905835035], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500769, "updated_at" = '2012-10-15 15:54:50.181873' WHERE "spree_product_properties"."id" = 1073273302 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451603 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451603], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500769 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500769, 558398684) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451604 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451604], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500769, 558398685) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1 Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500769 AND "spree_option_types"."id" = 935339225 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500769) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["option_type_id", 935339225], ["position", 1], ["product_id", 1060500769], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339225) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339225], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.207874' WHERE "spree_products"."id" = 1060500769 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500769], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.209349' WHERE "spree_products"."id" = 1060500769  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589983, 979460173) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339225) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339225], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.213808' WHERE "spree_products"."id" = 1060500769 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500769], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.215056' WHERE "spree_products"."id" = 1060500769  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589984, 979460174) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339225) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339225], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.219488' WHERE "spree_products"."id" = 1060500769 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500769], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.240062' WHERE "spree_products"."id" = 1060500769  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589985, 979460175) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500769]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589983 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589984 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589985 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.251319' WHERE "spree_products"."id" = 1060500769  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589983 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.252511' WHERE "spree_products"."id" = 1060500769 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.253401' WHERE "spree_products"."id" = 1060500769  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589984 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.254322' WHERE "spree_products"."id" = 1060500769 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500769 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.255379' WHERE "spree_products"."id" = 1060500769  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589985 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:50.256129' WHERE "spree_products"."id" = 1060500769 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1 Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589982 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (4.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:50 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1 Spree::Asset Load (2.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.3ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:51 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1 Spree::Asset Load (2.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500769) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:54:52.924631' WHERE "spree_products"."id" = 1060500769 Row ["MULTI_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg", "fixtures/images/DEMO_001_ror_bag.jpeg:more random alt text", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500769 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:52.964460' WHERE "spree_products"."id" = 1060500770 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500770], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:52.966792' WHERE "spree_products"."id" = 1060500770  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589986 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:52.968562' WHERE "spree_products"."id" = 1060500770  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500770  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["product_id", nil], ["property_id", 905835036], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500770, "updated_at" = '2012-10-15 15:54:52.979895' WHERE "spree_product_properties"."id" = 1073273303 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451603 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500770 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500770, 558398684) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451605 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451605], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500770, 558398686) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451606 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451606], ["updated_at", Mon, 15 Oct 2012 15:54:52 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500770, 558398687) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500770 AND "spree_option_types"."id" = 935339225 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500770) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:54:53 UTC +00:00], ["option_type_id", 935339225], ["position", 1], ["product_id", 1060500770], ["updated_at", Mon, 15 Oct 2012 15:54:53 UTC +00:00]] Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.012161' WHERE "spree_products"."id" = 1060500770 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500770], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.013264' WHERE "spree_products"."id" = 1060500770  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589987, 979460173) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.016336' WHERE "spree_products"."id" = 1060500770 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500770], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.017435' WHERE "spree_products"."id" = 1060500770  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589988, 979460174) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339225 LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.020090' WHERE "spree_products"."id" = 1060500770 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500770], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.021401' WHERE "spree_products"."id" = 1060500770  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589989, 979460175) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500770]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589987 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589988 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589989 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.035040' WHERE "spree_products"."id" = 1060500770  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589987 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.036314' WHERE "spree_products"."id" = 1060500770 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.037591' WHERE "spree_products"."id" = 1060500770  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589988 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.038464' WHERE "spree_products"."id" = 1060500770 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500770 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.039660' WHERE "spree_products"."id" = 1060500770  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589989 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:54:53.040753' WHERE "spree_products"."id" = 1060500770 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589986 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (3.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:53 UTC +00:00], ["attachment_width", 2424], ["position", 4], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (2.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Mon, 15 Oct 2012 15:54:58 UTC +00:00], ["attachment_width", 240], ["position", 5], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign : Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500770) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500770 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:54:59.869478' WHERE "spree_products"."id" = 1060500770 Row ["MULTI_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg:some random alt text|fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500770 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (45.9ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500769 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013589982 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Booted Spree using version 1.1.3 SQL (4.9ms) DELETE FROM "spree_products" SQL (1.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451607 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451607], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451607], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451607], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.0ms) commit transaction Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (3.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.6ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451608 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451608], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451608], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451608], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (1.7ms) commit transaction Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451608 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451608 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451608 LIMIT 1 Booted Spree using version 1.1.3 SQL (5.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (23.0ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451609], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (3.6ms) commit transaction  (0.1ms) begin transaction  (0.5ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451609], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.7ms) UPDATE "spree_taxons" SET "parent_id" = 558398694, "updated_at" = '2012-10-15 15:55:00.488760' WHERE "spree_taxons"."id" = 558398695 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398694]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398695]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398695 THEN 558398694 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398694]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398695]]  (1.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398694 ORDER BY "lft" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.531721' WHERE "spree_products"."id" = 1060500771 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500771], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.533002' WHERE "spree_products"."id" = 1060500771  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589990 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.556335' WHERE "spree_products"."id" = 1060500771  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500771  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (39.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["product_id", nil], ["property_id", 905835037], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["value", nil]]  (1.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500771, "updated_at" = '2012-10-15 15:55:00.603537' WHERE "spree_product_properties"."id" = 1073273304 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500771) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500771 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500771, 558398694) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451610 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451610], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500771, 558398696) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500771) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500771 AND "spree_option_types"."id" = 935339226 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500771) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["option_type_id", 935339226], ["position", 1], ["product_id", 1060500771], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339226) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339226], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.629380' WHERE "spree_products"."id" = 1060500771 SQL (0.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500771], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.631004' WHERE "spree_products"."id" = 1060500771  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589991, 979460176) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339226) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339226], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.635426' WHERE "spree_products"."id" = 1060500771 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500771], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.636790' WHERE "spree_products"."id" = 1060500771  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589992, 979460177) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339226) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339226], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (21.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.661347' WHERE "spree_products"."id" = 1060500771 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500771], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.662604' WHERE "spree_products"."id" = 1060500771  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589993, 979460178) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500771]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500771) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589991 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589992 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589993 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500771) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.676269' WHERE "spree_products"."id" = 1060500771  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589991 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.677332' WHERE "spree_products"."id" = 1060500771 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.678282' WHERE "spree_products"."id" = 1060500771  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013589992 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.679131' WHERE "spree_products"."id" = 1060500771 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.680275' WHERE "spree_products"."id" = 1060500771  (2.4ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013589993 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.683559' WHERE "spree_products"."id" = 1060500771 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500771) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500771 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:55:00.686004' WHERE "spree_products"."id" = 1060500771 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500771 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.693417' WHERE "spree_products"."id" = 1060500772 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500772], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.694596' WHERE "spree_products"."id" = 1060500772  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589994 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.696264' WHERE "spree_products"."id" = 1060500772  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500772  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["product_id", nil], ["property_id", 905835038], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500772, "updated_at" = '2012-10-15 15:55:00.703590' WHERE "spree_product_properties"."id" = 1073273305 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500772) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500772 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500772, 558398694) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451611 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451611], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500772, 558398697) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398694 AND "spree_taxons"."taxonomy_id" = 854451609 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398694]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398694], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451609], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398694]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398698]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398698 THEN 558398694 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398694]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398698]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398698 AND "spree_taxons"."taxonomy_id" = 854451609 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398698]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398698], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451609], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398698]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398699]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398699 THEN 558398698 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398698]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398699]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500772, 558398698)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500772, 558398699) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500772) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500772 AND "spree_option_types"."id" = 935339226 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500772) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["option_type_id", 935339226], ["position", 1], ["product_id", 1060500772], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.737173' WHERE "spree_products"."id" = 1060500772 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500772], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.738252' WHERE "spree_products"."id" = 1060500772  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589995, 979460176) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.740670' WHERE "spree_products"."id" = 1060500772 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500772], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.741849' WHERE "spree_products"."id" = 1060500772  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589996, 979460177) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.744091' WHERE "spree_products"."id" = 1060500772 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500772], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.745219' WHERE "spree_products"."id" = 1060500772  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589997, 979460178) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500772]] Current value to assign : Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500772) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589995 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589996 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.6ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589997 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500772) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (1.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.759838' WHERE "spree_products"."id" = 1060500772  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013589995 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.761734' WHERE "spree_products"."id" = 1060500772 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.762720' WHERE "spree_products"."id" = 1060500772  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013589996 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.763524' WHERE "spree_products"."id" = 1060500772 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.765487' WHERE "spree_products"."id" = 1060500772  (0.6ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013589997 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.766764' WHERE "spree_products"."id" = 1060500772 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500772) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500772 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:55:00.768928' WHERE "spree_products"."id" = 1060500772 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500772 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.775680' WHERE "spree_products"."id" = 1060500773 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.776965' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013589998 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.778005' WHERE "spree_products"."id" = 1060500773  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500773  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["product_id", nil], ["property_id", 905835039], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500773, "updated_at" = '2012-10-15 15:55:00.783785' WHERE "spree_product_properties"."id" = 1073273306 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["product_id", nil], ["property_id", 905835038], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500773, "updated_at" = '2012-10-15 15:55:00.785582' WHERE "spree_product_properties"."id" = 1073273307 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["product_id", nil], ["property_id", 905835040], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500773, "updated_at" = '2012-10-15 15:55:00.791896' WHERE "spree_product_properties"."id" = 1073273308 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500773) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451612 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451612], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500773 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500773, 558398700) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398694 AND "spree_taxons"."taxonomy_id" = 854451609 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500773, 558398695)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500773, 558398694) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500773) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500773 AND "spree_option_types"."id" = 935339226 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500773) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["option_type_id", 935339226], ["position", 1], ["product_id", 1060500773], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.812006' WHERE "spree_products"."id" = 1060500773 SQL (0.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.813915' WHERE "spree_products"."id" = 1060500773  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013589999, 979460176) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.815894' WHERE "spree_products"."id" = 1060500773 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.816960' WHERE "spree_products"."id" = 1060500773  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590000, 979460177) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339226 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.819088' WHERE "spree_products"."id" = 1060500773 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.820149' WHERE "spree_products"."id" = 1060500773  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590001, 979460178) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500773]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500773 AND "spree_option_types"."id" = 935339227 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500773) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["option_type_id", 935339227], ["position", 2], ["product_id", 1060500773], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339227 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339227) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339227], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.830099' WHERE "spree_products"."id" = 1060500773 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.831301' WHERE "spree_products"."id" = 1060500773  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590002, 979460179) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339227 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339227) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "colour"], ["option_type_id", 935339227], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.835903' WHERE "spree_products"."id" = 1060500773 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500773], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.836968' WHERE "spree_products"."id" = 1060500773  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590003, 979460180) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500773]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500773) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013589999 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590000 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590001 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590002 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590003 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500773) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.873007' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013589999 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.873971' WHERE "spree_products"."id" = 1060500773 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.874853' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590000 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.875529' WHERE "spree_products"."id" = 1060500773 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.876355' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590001 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.877596' WHERE "spree_products"."id" = 1060500773 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.878565' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590002 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.879270' WHERE "spree_products"."id" = 1060500773 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500773 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.880253' WHERE "spree_products"."id" = 1060500773  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590003 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:00.881007' WHERE "spree_products"."id" = 1060500773 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500773) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500773 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:55:00.883758' WHERE "spree_products"."id" = 1060500773 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500773 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (7.9ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500771 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500771 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500772 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500772 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398694 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451609 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398698 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398698 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398699 ORDER BY "lft" SQL (1.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (21.0ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.6ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.8ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451613], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.5ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451613], ["updated_at", Mon, 15 Oct 2012 15:55:00 UTC +00:00]]  (2.0ms) commit transaction  (0.0ms) begin transaction  (0.7ms) UPDATE "spree_taxons" SET "parent_id" = 558398701, "updated_at" = '2012-10-15 15:55:00.978656' WHERE "spree_taxons"."id" = 558398702 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398701]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398702]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398702 THEN 558398701 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398701]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398702]]  (1.9ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398701 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.055080' WHERE "spree_products"."id" = 1060500774 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500774], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.056295' WHERE "spree_products"."id" = 1060500774  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590004 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.078444' WHERE "spree_products"."id" = 1060500774  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500774  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835041], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500774, "updated_at" = '2012-10-15 15:55:01.085409' WHERE "spree_product_properties"."id" = 1073273309 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500774 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500774, 558398701) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451614 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451614], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500774, 558398703) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500774 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500774) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339228], ["position", 1], ["product_id", 1060500774], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339228) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339228], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.114269' WHERE "spree_products"."id" = 1060500774 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500774], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.115248' WHERE "spree_products"."id" = 1060500774  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590005, 979460181) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500774]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1 Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500774 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339228) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339228], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.123704' WHERE "spree_products"."id" = 1060500774 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500774], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.124702' WHERE "spree_products"."id" = 1060500774  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590006, 979460182) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500774]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500774 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339228) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339228], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.153325' WHERE "spree_products"."id" = 1060500774 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500774], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.154386' WHERE "spree_products"."id" = 1060500774  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590007, 979460183) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500774]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590005 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590006 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590007 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.169444' WHERE "spree_products"."id" = 1060500774  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590005 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.170773' WHERE "spree_products"."id" = 1060500774 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.171855' WHERE "spree_products"."id" = 1060500774  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590006 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.172648' WHERE "spree_products"."id" = 1060500774 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.173362' WHERE "spree_products"."id" = 1060500774  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590007 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.174168' WHERE "spree_products"."id" = 1060500774 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500774) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500774 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:55:01.177290' WHERE "spree_products"."id" = 1060500774 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500774 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.184374' WHERE "spree_products"."id" = 1060500775 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500775], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.185781' WHERE "spree_products"."id" = 1060500775  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590008 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.186918' WHERE "spree_products"."id" = 1060500775  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500775  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835042], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500775, "updated_at" = '2012-10-15 15:55:01.192011' WHERE "spree_product_properties"."id" = 1073273310 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500775 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500775, 558398701) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451615 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451615], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500775, 558398704) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398701 AND "spree_taxons"."taxonomy_id" = 854451613 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398701]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398701], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451613], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398701]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398705]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398705 THEN 558398701 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398701]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398705]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398705 AND "spree_taxons"."taxonomy_id" = 854451613 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398705]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398705], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451613], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398705]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398706]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398706 THEN 558398705 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398705]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398706]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500775, 558398705)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500775, 558398706) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500775 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500775) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339228], ["position", 1], ["product_id", 1060500775], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.227676' WHERE "spree_products"."id" = 1060500775 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500775], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.228827' WHERE "spree_products"."id" = 1060500775  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590009, 979460181) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500775]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500775 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.234892' WHERE "spree_products"."id" = 1060500775 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500775], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.235729' WHERE "spree_products"."id" = 1060500775  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590010, 979460182) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500775]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500775 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.242292' WHERE "spree_products"."id" = 1060500775 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500775], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.243153' WHERE "spree_products"."id" = 1060500775  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590011, 979460183) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500775]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590009 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590010 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590011 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.256882' WHERE "spree_products"."id" = 1060500775  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590009 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.258011' WHERE "spree_products"."id" = 1060500775 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.258802' WHERE "spree_products"."id" = 1060500775  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590010 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.260049' WHERE "spree_products"."id" = 1060500775 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.260822' WHERE "spree_products"."id" = 1060500775  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590011 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.261694' WHERE "spree_products"."id" = 1060500775 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500775) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500775 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:55:01.263845' WHERE "spree_products"."id" = 1060500775 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500775 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.270064' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.271012' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590012 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.272466' WHERE "spree_products"."id" = 1060500776  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500776  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835043], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500776, "updated_at" = '2012-10-15 15:55:01.278043' WHERE "spree_product_properties"."id" = 1073273311 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835042], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500776, "updated_at" = '2012-10-15 15:55:01.280465' WHERE "spree_product_properties"."id" = 1073273312 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835044], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500776, "updated_at" = '2012-10-15 15:55:01.284012' WHERE "spree_product_properties"."id" = 1073273313 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451616 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451616], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500776 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500776, 558398707) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398701 AND "spree_taxons"."taxonomy_id" = 854451613 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500776, 558398702)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500776, 558398701) Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500776 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500776) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339228], ["position", 1], ["product_id", 1060500776], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.344117' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.345410' WHERE "spree_products"."id" = 1060500776  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590013, 979460181) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500776]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500776 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.352134' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.353417' WHERE "spree_products"."id" = 1060500776  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590014, 979460182) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500776]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500776 AND "spree_option_types"."id" = 935339228 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339228 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.359899' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.360902' WHERE "spree_products"."id" = 1060500776  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590015, 979460183) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500776]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500776 AND "spree_option_types"."id" = 935339229 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500776) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339229], ["position", 2], ["product_id", 1060500776], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339229 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339229) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339229], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.372279' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.373229' WHERE "spree_products"."id" = 1060500776  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590016, 979460184) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500776]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500776 AND "spree_option_types"."id" = 935339229 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339229 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339229) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "colour"], ["option_type_id", 935339229], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.381915' WHERE "spree_products"."id" = 1060500776 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500776], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.382955' WHERE "spree_products"."id" = 1060500776  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590017, 979460185) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500776]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590013 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590014 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590015 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590016 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590017 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.474463' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590013 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.476143' WHERE "spree_products"."id" = 1060500776 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.477185' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590014 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.478014' WHERE "spree_products"."id" = 1060500776 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.480096' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590015 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.481185' WHERE "spree_products"."id" = 1060500776 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.482472' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590016 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.483243' WHERE "spree_products"."id" = 1060500776 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500776 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.484176' WHERE "spree_products"."id" = 1060500776  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590017 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.484944' WHERE "spree_products"."id" = 1060500776 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500776) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500776 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:55:01.487822' WHERE "spree_products"."id" = 1060500776 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500776 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.4ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500774 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500774 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500775 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500775 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398701 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451613 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398705 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398705 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398706 ORDER BY "lft" SQL (2.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (21.7ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451617], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (2.6ms) commit transaction  (0.3ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451617], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction  (0.8ms) UPDATE "spree_taxons" SET "parent_id" = 558398708, "updated_at" = '2012-10-15 15:55:01.598233' WHERE "spree_taxons"."id" = 558398709 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398708]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398709]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398709 THEN 558398708 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398708]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398709]]  (2.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398708 ORDER BY "lft"  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.621944' WHERE "spree_products"."id" = 1060500777 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500777], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.623205' WHERE "spree_products"."id" = 1060500777  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590018 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.624980' WHERE "spree_products"."id" = 1060500777  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500777  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835045], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500777, "updated_at" = '2012-10-15 15:55:01.630016' WHERE "spree_product_properties"."id" = 1073273314 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (20.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500777 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500777, 558398708) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451618 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451618], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500777, 558398710) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500777 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500777) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339230], ["position", 1], ["product_id", 1060500777], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339230) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339230], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.676703' WHERE "spree_products"."id" = 1060500777 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500777], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.678017' WHERE "spree_products"."id" = 1060500777  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590019, 979460186) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500777]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500777 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339230) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339230], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.687000' WHERE "spree_products"."id" = 1060500777 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500777], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (21.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.687859' WHERE "spree_products"."id" = 1060500777  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590020, 979460187) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500777]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500777 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339230) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339230], ["position", 3], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.717780' WHERE "spree_products"."id" = 1060500777 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500777], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.718914' WHERE "spree_products"."id" = 1060500777  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590021, 979460188) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500777]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590019 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590020 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590021 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.736017' WHERE "spree_products"."id" = 1060500777  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590019 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.737343' WHERE "spree_products"."id" = 1060500777 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.738828' WHERE "spree_products"."id" = 1060500777  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590020 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.739903' WHERE "spree_products"."id" = 1060500777 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.741186' WHERE "spree_products"."id" = 1060500777  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590021 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.742140' WHERE "spree_products"."id" = 1060500777 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500777) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500777 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-15 15:55:01.744272' WHERE "spree_products"."id" = 1060500777 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.750622' WHERE "spree_products"."id" = 1060500778 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500778], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.751914' WHERE "spree_products"."id" = 1060500778  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590022 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.753113' WHERE "spree_products"."id" = 1060500778  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500778  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835046], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500778, "updated_at" = '2012-10-15 15:55:01.758018' WHERE "spree_product_properties"."id" = 1073273315 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500778 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500778, 558398708) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451619 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451619], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500778, 558398711) Spree::Product Exists (0.9ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398708 AND "spree_taxons"."taxonomy_id" = 854451617 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398708]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398708], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451617], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398708]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398712]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398712 THEN 558398708 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398708]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398712]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398712 AND "spree_taxons"."taxonomy_id" = 854451617 LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398712]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398712], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451617], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398712]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398713]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398713 THEN 558398712 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398712]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398713]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500778, 558398712)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500778, 558398713) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500778 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500778) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339230], ["position", 1], ["product_id", 1060500778], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.793018' WHERE "spree_products"."id" = 1060500778 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500778], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.794238' WHERE "spree_products"."id" = 1060500778  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590023, 979460186) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500778]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500778 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.799979' WHERE "spree_products"."id" = 1060500778 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500778], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.801236' WHERE "spree_products"."id" = 1060500778  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590024, 979460187) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500778]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500778 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.807842' WHERE "spree_products"."id" = 1060500778 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500778], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.808825' WHERE "spree_products"."id" = 1060500778  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590025, 979460188) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500778]] Current value to assign : Current value to assign : Spree::Variant Load (2.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590023 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590024 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590025 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.869899' WHERE "spree_products"."id" = 1060500778  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590023 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.871019' WHERE "spree_products"."id" = 1060500778 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.872357' WHERE "spree_products"."id" = 1060500778  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590024 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.873222' WHERE "spree_products"."id" = 1060500778 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.874186' WHERE "spree_products"."id" = 1060500778  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590025 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.874947' WHERE "spree_products"."id" = 1060500778 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500778) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500778 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-15 15:55:01.878943' WHERE "spree_products"."id" = 1060500778 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.885605' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.886720' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590026 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.887803' WHERE "spree_products"."id" = 1060500779  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500779  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835047], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500779, "updated_at" = '2012-10-15 15:55:01.893019' WHERE "spree_product_properties"."id" = 1073273316 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835046], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500779, "updated_at" = '2012-10-15 15:55:01.895857' WHERE "spree_product_properties"."id" = 1073273317 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["product_id", nil], ["property_id", 905835048], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500779, "updated_at" = '2012-10-15 15:55:01.899535' WHERE "spree_product_properties"."id" = 1073273318 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451620 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451620], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500779 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500779, 558398714) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398708 AND "spree_taxons"."taxonomy_id" = 854451617 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500779, 558398709)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500779, 558398708) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500779 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500779) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339230], ["position", 1], ["product_id", 1060500779], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.918366' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.919365' WHERE "spree_products"."id" = 1060500779  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590027, 979460186) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500779]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500779 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.925695' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.927007' WHERE "spree_products"."id" = 1060500779  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590028, 979460187) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500779]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500779 AND "spree_option_types"."id" = 935339230 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339230 LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.933601' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.934852' WHERE "spree_products"."id" = 1060500779  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590029, 979460188) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500779]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500779 AND "spree_option_types"."id" = 935339231 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500779) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["option_type_id", 935339231], ["position", 2], ["product_id", 1060500779], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339231 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339231) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339231], ["position", 1], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.945002' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.946020' WHERE "spree_products"."id" = 1060500779  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590030, 979460189) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500779]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500779 AND "spree_option_types"."id" = 935339231 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339231 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339231) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00], ["name", "colour"], ["option_type_id", 935339231], ["position", 2], ["presentation", nil], ["updated_at", Mon, 15 Oct 2012 15:55:01 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.954455' WHERE "spree_products"."id" = 1060500779 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500779], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.955360' WHERE "spree_products"."id" = 1060500779  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590031, 979460190) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500779]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (19.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590027 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590028 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590029 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590030 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590031 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.989500' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590027 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.990752' WHERE "spree_products"."id" = 1060500779 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.991724' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590028 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.993186' WHERE "spree_products"."id" = 1060500779 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.994151' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590029 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.994956' WHERE "spree_products"."id" = 1060500779 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.996290' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590030 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.996999' WHERE "spree_products"."id" = 1060500779 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500779 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.998602' WHERE "spree_products"."id" = 1060500779  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590031 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:01.999990' WHERE "spree_products"."id" = 1060500779 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500779) LIMIT 1  (2.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500779 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-15 15:55:02.004596' WHERE "spree_products"."id" = 1060500779  (5.7ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500777 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500777 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500778 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500778 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398708 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451617 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398712 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398712 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398713 ORDER BY "lft" SQL (3.1ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.0ms) SELECT COUNT(*) FROM "spree_taxons" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500780 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.084549' WHERE "spree_products"."id" = 1060500780 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500780], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (22.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.085925' WHERE "spree_products"."id" = 1060500780  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590032 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.110022' WHERE "spree_products"."id" = 1060500780  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500780 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500780 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500780  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500780 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (38.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398715 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398715]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398715], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398715]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398716]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398716 THEN 558398715 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398715]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398716]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500780 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500780, 558398716)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500780, 558398715) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500780) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451622 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451622], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500780, 558398717) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500780) LIMIT 1 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590032 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500780) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:55:02.177377' WHERE "spree_products"."id" = 1060500780  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590032 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.179008' WHERE "spree_products"."id" = 1060500780 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500780 Row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "Paintings>Landscape", "WaterColour", nil, 2] succesfully SAVED : ID 1060500780 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500781 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.186500' WHERE "spree_products"."id" = 1060500781 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500781], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.187450' WHERE "spree_products"."id" = 1060500781  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590033 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.188443' WHERE "spree_products"."id" = 1060500781  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500781 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500781 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500781  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500781 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500781 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500781, 558398715) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500781) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451623 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451623], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500781, 558398718) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500781) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398715 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398715]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398715], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398715]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398719 THEN 558398715 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398715]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398719 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398719], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398719]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398720]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398720 THEN 558398719 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398720]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500781, 558398719)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500781, 558398720) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500781) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590033 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500781) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:55:02.217235' WHERE "spree_products"."id" = 1060500781  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590033 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.218608' WHERE "spree_products"."id" = 1060500781 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500781 Row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", 100, 30, "Paintings", "Oils", "Paintings>Nature>Landscape", 5] succesfully SAVED : ID 1060500781 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500782 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.224837' WHERE "spree_products"."id" = 1060500782 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500782], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.225890' WHERE "spree_products"."id" = 1060500782  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590034 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.227244' WHERE "spree_products"."id" = 1060500782  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500782 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500782 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500782  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500782 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451624], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398721 AND "spree_taxons"."taxonomy_id" = 854451624 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398721]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398721], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451624], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398721]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398722]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398722 THEN 558398721 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398721]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398722]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500782 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500782, 558398722)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500782, 558398721) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500782) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451625 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451625], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500782, 558398723) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500782) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590034 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500782) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:55:02.253313' WHERE "spree_products"."id" = 1060500782  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590034 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.254856' WHERE "spree_products"."id" = 1060500782 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500782 Row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "Drawings>Landscape", "Landscape", nil, 7] succesfully SAVED : ID 1060500782 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500783 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.261142' WHERE "spree_products"."id" = 1060500783 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500783], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.262555' WHERE "spree_products"."id" = 1060500783  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590035 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.263719' WHERE "spree_products"."id" = 1060500783  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500783 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500783 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500783  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500783 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398721 AND "spree_taxons"."taxonomy_id" = 854451624 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500783 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398722)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398721) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500783) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398715 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398719 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398719], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398719]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398724]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398724 THEN 558398719 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398719]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398724]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398724 AND "spree_taxons"."taxonomy_id" = 854451621 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398724]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398724], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451621], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398724]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398725]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398725 THEN 558398724 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398724]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398725]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398719)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398724)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398725)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500783, 558398715) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500783) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590035 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500783) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:55:02.291341' WHERE "spree_products"."id" = 1060500783  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590035 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.292742' WHERE "spree_products"."id" = 1060500783 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500783 Row ["test_ct_004", "Demo four", "blah", "2012-07-01", 0.34, 0.01, "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", 3] succesfully SAVED : ID 1060500783 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500784 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.299024' WHERE "spree_products"."id" = 1060500784 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500784], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.300250' WHERE "spree_products"."id" = 1060500784  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590036 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.301187' WHERE "spree_products"."id" = 1060500784  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500784 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500784 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500784  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500784 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398721 AND "spree_taxons"."taxonomy_id" = 854451624 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398722 AND "spree_taxons"."taxonomy_id" = 854451624 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398722]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398722], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451624], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398722]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398726]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398726 THEN 558398722 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398722]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398726]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500784 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500784, 558398722)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500784, 558398726)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500784, 558398721) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500784) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451623 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500784, 558398718) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500784) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590036 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500784) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:55:02.319746' WHERE "spree_products"."id" = 1060500784  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590036 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.321269' WHERE "spree_products"."id" = 1060500784 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500784 Row ["test_ct_005", "Demo five", "blah", "2012-07-01", 3.34, 3.01, "Drawings>Landscape>Bristol", "Oils", nil, 3] succesfully SAVED : ID 1060500784 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (20.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451622 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451623 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451625 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451621 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398715 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398715) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398719 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398719) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398719) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398715 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398719 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398724 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398725 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398724) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451624 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398722 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398722 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398726 ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398726) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451623 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451623 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398718 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451625 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451625 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398723 ORDER BY "lft" SQL (3.0ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (3.3ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (3.2ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500785 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.447563' WHERE "spree_products"."id" = 1060500785 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500785], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.449283' WHERE "spree_products"."id" = 1060500785  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590037 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.450433' WHERE "spree_products"."id" = 1060500785  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500785 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500785 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500785  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500785 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Paintings"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (21.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398727 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1  (0.8ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398727]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398727], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398727]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398728]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398728 THEN 558398727 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398727]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398728]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500785 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500785, 558398728)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500785, 558398727) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500785) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "WaterColour"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451627 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451627], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500785, 558398729) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500785) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590037 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "Paintings>Landscape", "WaterColour", nil, "2"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500785) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-15 15:55:02.506274' WHERE "spree_products"."id" = 1060500785  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590037 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.507526' WHERE "spree_products"."id" = 1060500785 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500785 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500786 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.513867' WHERE "spree_products"."id" = 1060500786 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500786], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.515015' WHERE "spree_products"."id" = 1060500786  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590038 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.516134' WHERE "spree_products"."id" = 1060500786  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500786 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500786 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500786  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500786 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500786 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500786, 558398727) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500786) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Oils"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451628 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451628], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500786, 558398730) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500786) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398727 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398727]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398727], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398727]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398731 THEN 558398727 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398727]] Spree::Taxon Load (0.5ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] Spree::Taxon Load (3.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398731 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398731], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398731]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398732]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398732 THEN 558398731 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398732]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500786, 558398731)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500786, 558398732) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500786) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590038 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", "100.00", "30.00", "Paintings", "Oils", "Paintings>Nature>Landscape", "5"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500786) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-15 15:55:02.590467' WHERE "spree_products"."id" = 1060500786  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590038 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.593028' WHERE "spree_products"."id" = 1060500786 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500786 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500787 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.600822' WHERE "spree_products"."id" = 1060500787 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500787], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.602166' WHERE "spree_products"."id" = 1060500787  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590039 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.603720' WHERE "spree_products"."id" = 1060500787  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500787 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500787 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500787  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500787 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Drawings"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451629], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398733 AND "spree_taxons"."taxonomy_id" = 854451629 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398733]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398733], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451629], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398733]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398734]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398734 THEN 558398733 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398733]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398734]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500787 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500787, 558398734)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500787, 558398733) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500787) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["name", "Landscape"], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451630 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451630], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500787, 558398735) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500787) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590039 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "Drawings>Landscape", "Landscape", nil, "7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500787) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-15 15:55:02.629621' WHERE "spree_products"."id" = 1060500787  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590039 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.631289' WHERE "spree_products"."id" = 1060500787 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500787 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500788 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.637646' WHERE "spree_products"."id" = 1060500788 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500788], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.638556' WHERE "spree_products"."id" = 1060500788  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590040 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.639722' WHERE "spree_products"."id" = 1060500788  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500788 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500788 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500788  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500788 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398733 AND "spree_taxons"."taxonomy_id" = 854451629 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500788 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398734)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398733) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500788) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398727 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398731 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398731], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398731]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398736]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398736 THEN 558398731 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398731]] Spree::Taxon Load (0.4ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398736]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398736 AND "spree_taxons"."taxonomy_id" = 854451626 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398736]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398736], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451626], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398736]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398737]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398737 THEN 558398736 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398736]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398737]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398731)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398736)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398737)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500788, 558398727) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500788) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590040 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_004", "Demo four", "blah", "2012-07-01", "0.34", "0.01", "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500788) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:55:02.668222' WHERE "spree_products"."id" = 1060500788  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590040 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.669925' WHERE "spree_products"."id" = 1060500788 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500788 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500789 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.675753' WHERE "spree_products"."id" = 1060500789 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500789], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.677012' WHERE "spree_products"."id" = 1060500789  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590041 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.678441' WHERE "spree_products"."id" = 1060500789  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500789 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500789 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500789  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500789 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398733 AND "spree_taxons"."taxonomy_id" = 854451629 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398734 AND "spree_taxons"."taxonomy_id" = 854451629 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398734]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398734], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451629], ["updated_at", Mon, 15 Oct 2012 15:55:02 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398734]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398738]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398738 THEN 558398734 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398734]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398738]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500789 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500789, 558398734)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500789, 558398738)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500789, 558398733) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500789) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451628 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500789, 558398730) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500789) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590041 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_005", "Demo five", "blah", "2012-07-01", "3.34", "3.01", "Drawings>Landscape>Bristol", "Oils", nil, "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500789) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-15 15:55:02.696851' WHERE "spree_products"."id" = 1060500789  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590041 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-15 15:55:02.698456' WHERE "spree_products"."id" = 1060500789 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500789  (17.3ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451627 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451628 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451630 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451626 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398727 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398727) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398731 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398731) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398731) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398727 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398731 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398736 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398737 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398736) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451629 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398734 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398734 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398738 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398738) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451628 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451628 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398730 ORDER BY "lft" Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451630 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451630 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398735 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (24.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (5.7ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones" SQL (1.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.2ms) DELETE FROM "spree_zones" SQL (1.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.6ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones" SQL (1.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones" SQL (2.3ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.2ms) begin transaction  (0.0ms) commit transaction SQL (2.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (2.2ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.1ms) commit transaction Booted Spree using version 1.1.3 SQL (24.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (2.6ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (59.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451631 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451631], ["updated_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00]]  (29.2ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451631], ["updated_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00]]  (35.6ms) commit transaction  (0.1ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451631], ["updated_at", Sat, 20 Oct 2012 09:32:44 UTC +00:00]]  (20.9ms) commit transaction ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (53.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451632 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451632], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (17.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451632], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (2.0ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451632], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (2.4ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product SQL (3.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451633 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451633], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (1.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451633], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (1.9ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451633], ["updated_at", Sat, 20 Oct 2012 09:32:45 UTC +00:00]]  (2.5ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (6.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (5.3ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (3.1ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (0.6ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (1.5ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (21.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 35 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 35 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 36 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 36 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 37 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 37 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 38 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 38 Current value to assign : Current value to assign :  (4.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_zones"  SQL (3.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (28.2ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (7.5ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.8ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 39 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 40 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 41 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 42  (15.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.3ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.6ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (4.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (4.3ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (2.8ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500790 LIMIT 1 SQL (13.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.528230' WHERE "spree_products"."id" = 1060500790 SQL (0.6ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500790], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.544747' WHERE "spree_products"."id" = 1060500790  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590042 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.548085' WHERE "spree_products"."id" = 1060500790  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500790 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500790 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500790  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500790 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (1.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590042 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500790) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Exists (7.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500790 AND "spree_option_types"."id" = 935339232 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500790) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339232], ["position", 1], ["product_id", 1060500790], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500790) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-20 09:32:46.652787' WHERE "spree_products"."id" = 1060500790  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590042 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.654430' WHERE "spree_products"."id" = 1060500790 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500790 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500790 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500791 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.661520' WHERE "spree_products"."id" = 1060500791 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500791], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.663001' WHERE "spree_products"."id" = 1060500791  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590043 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.664074' WHERE "spree_products"."id" = 1060500791  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500791 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500791 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500791  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500791 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590043 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500791) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500791 AND "spree_option_types"."id" = 935339232 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500791) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339232], ["position", 1], ["product_id", 1060500791], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500791) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-20 09:32:46.674301' WHERE "spree_products"."id" = 1060500791  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590043 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.676023' WHERE "spree_products"."id" = 1060500791 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500791 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500791 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (36.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500792 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.723483' WHERE "spree_products"."id" = 1060500792 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500792], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.724810' WHERE "spree_products"."id" = 1060500792  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590044 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.727470' WHERE "spree_products"."id" = 1060500792  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500792 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500792 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500792  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500792 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590044 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500792) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500792 AND "spree_option_types"."id" = 935339232 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500792) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339232], ["position", 1], ["product_id", 1060500792], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500792 AND "spree_option_types"."id" = 935339233 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500792) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339233], ["position", 2], ["product_id", 1060500792], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500792) LIMIT 1  (0.5ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-20 09:32:46.744521' WHERE "spree_products"."id" = 1060500792  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013590044 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.746521' WHERE "spree_products"."id" = 1060500792 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500792 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500792 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (45.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-20 09:32:46.799978')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-20 09:32:46.800619')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500790 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500790 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500790 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500792 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (4.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (31.1ms) DELETE FROM "spree_variants" SQL (3.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500793 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.885383' WHERE "spree_products"."id" = 1060500793 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500793], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.886702' WHERE "spree_products"."id" = 1060500793  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590045 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.887870' WHERE "spree_products"."id" = 1060500793  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500793 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500793 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500793  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500793 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590045 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500793) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500793 AND "spree_option_types"."id" = 935339234 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500793) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339234], ["position", 1], ["product_id", 1060500793], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500793) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-20 09:32:46.899523' WHERE "spree_products"."id" = 1060500793  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590045 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.901123' WHERE "spree_products"."id" = 1060500793 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500793 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500794 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.908231' WHERE "spree_products"."id" = 1060500794 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500794], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.909271' WHERE "spree_products"."id" = 1060500794  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590046 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.910111' WHERE "spree_products"."id" = 1060500794  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500794 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500794 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500794  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500794 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590046 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500794) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500794 AND "spree_option_types"."id" = 935339234 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500794) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339234], ["position", 1], ["product_id", 1060500794], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500794) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-20 09:32:46.920190' WHERE "spree_products"."id" = 1060500794  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590046 SQL (2.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.921389' WHERE "spree_products"."id" = 1060500794 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500794 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500795 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.930787' WHERE "spree_products"."id" = 1060500795 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500795], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.932070' WHERE "spree_products"."id" = 1060500795  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590047 SQL (4.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.933173' WHERE "spree_products"."id" = 1060500795  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500795 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500795 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500795  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500795 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590047 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500795) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500795 AND "spree_option_types"."id" = 935339234 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500795) ORDER BY position DESC LIMIT 1 SQL (37.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339234], ["position", 1], ["product_id", 1060500795], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500795 AND "spree_option_types"."id" = 935339235 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500795) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00], ["option_type_id", 935339235], ["position", 2], ["product_id", 1060500795], ["updated_at", Sat, 20 Oct 2012 09:32:46 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500795) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-20 09:32:46.991316' WHERE "spree_products"."id" = 1060500795  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013590047 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:46.992965' WHERE "spree_products"."id" = 1060500795 SQL (0.4ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500795  (6.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-20 09:32:47.001455')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-20 09:32:47.002017')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500793 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500793 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500793 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500795 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (5.5ms) DELETE FROM "spree_products" SQL (0.9ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 20 Oct 2012 10:32:47 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500796 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.072172' WHERE "spree_products"."id" = 1060500796 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500796], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.073673' WHERE "spree_products"."id" = 1060500796  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590048 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.078442' WHERE "spree_products"."id" = 1060500796  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500796 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500796 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500796  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500796 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500796 AND "spree_option_types"."id" = 935339236 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500796) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339236], ["position", 1], ["product_id", 1060500796], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500796) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500796 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 20 Oct 2012 10:32:47 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500797 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.094158' WHERE "spree_products"."id" = 1060500797 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500797], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.095910' WHERE "spree_products"."id" = 1060500797  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590049 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.096904' WHERE "spree_products"."id" = 1060500797  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500797 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500797 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500797  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500797 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500797 AND "spree_option_types"."id" = 935339236 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500797) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339236], ["position", 1], ["product_id", 1060500797], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500797) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500797 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 20 Oct 2012 10:32:47 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500798 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.108741' WHERE "spree_products"."id" = 1060500798 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500798], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.109931' WHERE "spree_products"."id" = 1060500798  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590050 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.111042' WHERE "spree_products"."id" = 1060500798  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500798 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500798 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500798  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500798 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500798 AND "spree_option_types"."id" = 935339236 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500798) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339236], ["position", 1], ["product_id", 1060500798], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500798 AND "spree_option_types"."id" = 935339237 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500798) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339237], ["position", 2], ["product_id", 1060500798], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500798) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500798 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (21.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500796 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (3.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.0ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500799 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.227814' WHERE "spree_products"."id" = 1060500799 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500799], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.229065' WHERE "spree_products"."id" = 1060500799  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590051 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.230078' WHERE "spree_products"."id" = 1060500799  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500799 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500799 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500799  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500799 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500799 AND "spree_option_types"."id" = 935339238 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500799) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339238], ["position", 1], ["product_id", 1060500799], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500799) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500799 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500800 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.248144' WHERE "spree_products"."id" = 1060500800 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500800], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.249349' WHERE "spree_products"."id" = 1060500800  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590052 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.250426' WHERE "spree_products"."id" = 1060500800  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500800 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500800 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500800  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500800 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500800 AND "spree_option_types"."id" = 935339238 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500800) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339238], ["position", 1], ["product_id", 1060500800], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500800) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500800 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500801 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.262932' WHERE "spree_products"."id" = 1060500801 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500801], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.264012' WHERE "spree_products"."id" = 1060500801  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590053 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.265103' WHERE "spree_products"."id" = 1060500801  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500801 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500801 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500801  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500801 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500801 AND "spree_option_types"."id" = 935339238 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500801) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339238], ["position", 1], ["product_id", 1060500801], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500801 AND "spree_option_types"."id" = 935339239 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500801) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339239], ["position", 2], ["product_id", 1060500801], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500801) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500801 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.6ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500799 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (1.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (3.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.3ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.432162' WHERE "spree_products"."id" = 1060500802 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500802], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.434070' WHERE "spree_products"."id" = 1060500802  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590054 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.435429' WHERE "spree_products"."id" = 1060500802  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500802  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835049], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.5ms) UPDATE "spree_product_properties" SET "product_id" = 1060500802, "updated_at" = '2012-10-20 09:32:47.454895' WHERE "spree_product_properties"."id" = 1073273319 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500802) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451634 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451634], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500802 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500802, 558398748) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451635 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451635], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500802, 558398749) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500802) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500802 AND "spree_option_types"."id" = 935339240 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500802) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339240], ["position", 1], ["product_id", 1060500802], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339240) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339240], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.495256' WHERE "spree_products"."id" = 1060500802 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500802], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.496601' WHERE "spree_products"."id" = 1060500802  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590055, 979460191) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339240) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339240], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.503702' WHERE "spree_products"."id" = 1060500802 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500802], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.504876' WHERE "spree_products"."id" = 1060500802  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590056, 979460192) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339240) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339240], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.508456' WHERE "spree_products"."id" = 1060500802 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500802], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.509682' WHERE "spree_products"."id" = 1060500802  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590057, 979460193) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500802]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500802) LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590055 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590056 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590057 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500802) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.520215' WHERE "spree_products"."id" = 1060500802  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590055 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.521372' WHERE "spree_products"."id" = 1060500802 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.522293' WHERE "spree_products"."id" = 1060500802  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590056 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.523015' WHERE "spree_products"."id" = 1060500802 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500802 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.523863' WHERE "spree_products"."id" = 1060500802  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590057 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.524633' WHERE "spree_products"."id" = 1060500802 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500802) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500802 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (1.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:47.527130' WHERE "spree_products"."id" = 1060500802 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500802 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.534609' WHERE "spree_products"."id" = 1060500803 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500803], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.535394' WHERE "spree_products"."id" = 1060500803  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590058 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.536432' WHERE "spree_products"."id" = 1060500803  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500803  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835050], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500803, "updated_at" = '2012-10-20 09:32:47.541646' WHERE "spree_product_properties"."id" = 1073273320 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500803) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451634 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500803 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500803, 558398748) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451636 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451636], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500803, 558398750) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451634 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398748 AND "spree_taxons"."taxonomy_id" = 854451634 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398748]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398748], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451634], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398748]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398751]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398751 THEN 558398748 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398748]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398751]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398751 AND "spree_taxons"."taxonomy_id" = 854451634 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398751]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398751], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451634], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398751]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398752]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398752 THEN 558398751 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398751]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398752]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500803, 558398751)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500803, 558398752) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500803) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500803 AND "spree_option_types"."id" = 935339240 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500803) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339240], ["position", 1], ["product_id", 1060500803], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.575299' WHERE "spree_products"."id" = 1060500803 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500803], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.577004' WHERE "spree_products"."id" = 1060500803  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590059, 979460191) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.578999' WHERE "spree_products"."id" = 1060500803 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500803], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.579945' WHERE "spree_products"."id" = 1060500803  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590060, 979460192) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.582094' WHERE "spree_products"."id" = 1060500803 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500803], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.583061' WHERE "spree_products"."id" = 1060500803  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590061, 979460193) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500803]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500803) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590059 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590060 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590061 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500803) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.596099' WHERE "spree_products"."id" = 1060500803  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590059 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.597128' WHERE "spree_products"."id" = 1060500803 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.598024' WHERE "spree_products"."id" = 1060500803  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590060 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.598854' WHERE "spree_products"."id" = 1060500803 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500803 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.599794' WHERE "spree_products"."id" = 1060500803  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590061 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.600644' WHERE "spree_products"."id" = 1060500803 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500803) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500803 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:47.602479' WHERE "spree_products"."id" = 1060500803 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500803 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.608432' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.609642' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590062 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.610779' WHERE "spree_products"."id" = 1060500804  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500804  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835051], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500804, "updated_at" = '2012-10-20 09:32:47.656803' WHERE "spree_product_properties"."id" = 1073273321 Created New ProductProperty # Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835050], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500804, "updated_at" = '2012-10-20 09:32:47.659222' WHERE "spree_product_properties"."id" = 1073273322 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835052], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500804, "updated_at" = '2012-10-20 09:32:47.662134' WHERE "spree_product_properties"."id" = 1073273323 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500804) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451637 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451637], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500804 Product assigned to Taxons : ["Drawings"]  (0.9ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500804, 558398753) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451634 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398748 AND "spree_taxons"."taxonomy_id" = 854451634 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398748]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398748], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451634], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398748]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398754]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398754 THEN 558398748 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398748]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398754]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500804, 558398754)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500804, 558398748) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500804) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500804 AND "spree_option_types"."id" = 935339240 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500804) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339240], ["position", 1], ["product_id", 1060500804], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.689154' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.690361' WHERE "spree_products"."id" = 1060500804  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590063, 979460191) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.693063' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.695636' WHERE "spree_products"."id" = 1060500804  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590064, 979460192) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339240 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.697884' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.698840' WHERE "spree_products"."id" = 1060500804  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590065, 979460193) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500804]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500804 AND "spree_option_types"."id" = 935339241 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500804) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339241], ["position", 2], ["product_id", 1060500804], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339241 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339241) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339241], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.708498' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.709477' WHERE "spree_products"."id" = 1060500804  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590066, 979460194) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339241 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339241) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "colour"], ["option_type_id", 935339241], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.713764' WHERE "spree_products"."id" = 1060500804 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500804], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.714824' WHERE "spree_products"."id" = 1060500804  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590067, 979460195) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500804]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500804) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590063 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590064 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590065 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590066 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590067 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500804) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.727936' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590063 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.728904' WHERE "spree_products"."id" = 1060500804 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.729975' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590064 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.730840' WHERE "spree_products"."id" = 1060500804 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.731779' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590065 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.732617' WHERE "spree_products"."id" = 1060500804 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (2.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.733497' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590066 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.736383' WHERE "spree_products"."id" = 1060500804 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500804 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.737394' WHERE "spree_products"."id" = 1060500804  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590067 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.738190' WHERE "spree_products"."id" = 1060500804 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500804) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500804 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:32:47.743503' WHERE "spree_products"."id" = 1060500804 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500804 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.1ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500802 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500804 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500804 SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (2.5ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.875343' WHERE "spree_products"."id" = 1060500805 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500805], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.876645' WHERE "spree_products"."id" = 1060500805  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590068 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.877833' WHERE "spree_products"."id" = 1060500805  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500805  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835053], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500805, "updated_at" = '2012-10-20 09:32:47.882493' WHERE "spree_product_properties"."id" = 1073273324 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451638 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451638], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500805 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500805, 558398755) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451639 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451639], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500805, 558398756) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500805 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500805) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["option_type_id", 935339242], ["position", 1], ["product_id", 1060500805], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339242) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339242], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.911184' WHERE "spree_products"."id" = 1060500805 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500805], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.913021' WHERE "spree_products"."id" = 1060500805  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590069, 979460196) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500805]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500805 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339242) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339242], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.921180' WHERE "spree_products"."id" = 1060500805 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500805], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.922175' WHERE "spree_products"."id" = 1060500805  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590070, 979460197) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500805]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500805 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339242) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339242], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.929726' WHERE "spree_products"."id" = 1060500805 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500805], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.930733' WHERE "spree_products"."id" = 1060500805  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590071, 979460198) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500805]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590069 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590070 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590071 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.949624' WHERE "spree_products"."id" = 1060500805  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590069 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.950616' WHERE "spree_products"."id" = 1060500805 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.951513' WHERE "spree_products"."id" = 1060500805  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590070 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.952336' WHERE "spree_products"."id" = 1060500805 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500805 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.953250' WHERE "spree_products"."id" = 1060500805  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590071 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.954134' WHERE "spree_products"."id" = 1060500805 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500805) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500805 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:47.956433' WHERE "spree_products"."id" = 1060500805 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500805 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.962661' WHERE "spree_products"."id" = 1060500806 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500806], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.963680' WHERE "spree_products"."id" = 1060500806  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590072 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:47.965038' WHERE "spree_products"."id" = 1060500806  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500806  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["product_id", nil], ["property_id", 905835054], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500806, "updated_at" = '2012-10-20 09:32:47.970649' WHERE "spree_product_properties"."id" = 1073273325 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451638 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500806 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500806, 558398755) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451640 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451640], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500806, 558398757) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451638 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398755 AND "spree_taxons"."taxonomy_id" = 854451638 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398755]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398755], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451638], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398755]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398758]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398758 THEN 558398755 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398755]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398758]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398758 AND "spree_taxons"."taxonomy_id" = 854451638 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398758]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398758], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451638], ["updated_at", Sat, 20 Oct 2012 09:32:47 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398758]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398759]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398759 THEN 558398758 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398758]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398759]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500806, 558398758)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500806, 558398759) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500806 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500806) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339242], ["position", 1], ["product_id", 1060500806], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.003194' WHERE "spree_products"."id" = 1060500806 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500806], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.004201' WHERE "spree_products"."id" = 1060500806  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590073, 979460196) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500806]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500806 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.010357' WHERE "spree_products"."id" = 1060500806 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500806], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.011433' WHERE "spree_products"."id" = 1060500806  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590074, 979460197) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500806]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500806 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.017738' WHERE "spree_products"."id" = 1060500806 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500806], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.018811' WHERE "spree_products"."id" = 1060500806  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590075, 979460198) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500806]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590073 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590074 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590075 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.034742' WHERE "spree_products"."id" = 1060500806  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590073 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.035656' WHERE "spree_products"."id" = 1060500806 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.036595' WHERE "spree_products"."id" = 1060500806  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590074 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.037379' WHERE "spree_products"."id" = 1060500806 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500806 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.038299' WHERE "spree_products"."id" = 1060500806  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590075 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.039137' WHERE "spree_products"."id" = 1060500806 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500806) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500806 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:48.041101' WHERE "spree_products"."id" = 1060500806 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500806 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.051415' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.052523' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590076 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.053882' WHERE "spree_products"."id" = 1060500807  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500807  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835055], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500807, "updated_at" = '2012-10-20 09:32:48.059151' WHERE "spree_product_properties"."id" = 1073273326 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835054], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500807, "updated_at" = '2012-10-20 09:32:48.062066' WHERE "spree_product_properties"."id" = 1073273327 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835056], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500807, "updated_at" = '2012-10-20 09:32:48.065943' WHERE "spree_product_properties"."id" = 1073273328 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451641 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451641], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500807 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500807, 558398760) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451638 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398755 AND "spree_taxons"."taxonomy_id" = 854451638 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398755]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398755], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451638], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398755]] Spree::Taxon Load (0.5ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398761]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398761 THEN 558398755 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398755]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398761]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500807, 558398761)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500807, 558398755) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (2.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500807 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500807) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339242], ["position", 1], ["product_id", 1060500807], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.094354' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.095315' WHERE "spree_products"."id" = 1060500807  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590077, 979460196) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500807]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500807 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.102497' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.103339' WHERE "spree_products"."id" = 1060500807  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590078, 979460197) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500807]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500807 AND "spree_option_types"."id" = 935339242 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339242 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.110747' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.111764' WHERE "spree_products"."id" = 1060500807  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590079, 979460198) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500807]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500807 AND "spree_option_types"."id" = 935339243 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500807) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339243], ["position", 2], ["product_id", 1060500807], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339243 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339243) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339243], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.123325' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.124445' WHERE "spree_products"."id" = 1060500807  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590080, 979460199) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500807]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500807 AND "spree_option_types"."id" = 935339243 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339243 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339243) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "colour"], ["option_type_id", 935339243], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (1.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.180142' WHERE "spree_products"."id" = 1060500807 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500807], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.181308' WHERE "spree_products"."id" = 1060500807  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590081, 979460200) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500807]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590077 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590078 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590079 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590080 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590081 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.195618' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590077 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.196680' WHERE "spree_products"."id" = 1060500807 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.197597' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590078 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.198394' WHERE "spree_products"."id" = 1060500807 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.199318' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590079 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.200174' WHERE "spree_products"."id" = 1060500807 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.201115' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590080 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.201917' WHERE "spree_products"."id" = 1060500807 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500807 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.202870' WHERE "spree_products"."id" = 1060500807  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590081 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.203691' WHERE "spree_products"."id" = 1060500807 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500807) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500807 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:32:48.205834' WHERE "spree_products"."id" = 1060500807 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500807 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500805 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500807 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500807 SQL (3.5ms) DELETE FROM "spree_products" SQL (0.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.5ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (13.7ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (2.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.4ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (4.4ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (12.2ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.8ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (4.4ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451642 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451642], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451642], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (13.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.621849' WHERE "spree_products"."id" = 1060500808 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500808], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.623115' WHERE "spree_products"."id" = 1060500808  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590082 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.624930' WHERE "spree_products"."id" = 1060500808  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500808  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835057], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500808, "updated_at" = '2012-10-20 09:32:48.630993' WHERE "spree_product_properties"."id" = 1073273329 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500808) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451642 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500808 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500808, 558398762) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451643 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451643], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500808, 558398764) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500808) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.4ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500808 AND "spree_option_types"."id" = 935339244 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500808) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339244], ["position", 1], ["product_id", 1060500808], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339244) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339244], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.652138' WHERE "spree_products"."id" = 1060500808 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500808], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.653344' WHERE "spree_products"."id" = 1060500808  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590083, 979460201) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::OptionValue Load (3.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339244) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339244], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.660939' WHERE "spree_products"."id" = 1060500808 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500808], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.661849' WHERE "spree_products"."id" = 1060500808  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590084, 979460202) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339244) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339244], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.665714' WHERE "spree_products"."id" = 1060500808 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500808], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.666762' WHERE "spree_products"."id" = 1060500808  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590085, 979460203) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500808]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500808) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590083 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590084 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590085 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500808) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.678119' WHERE "spree_products"."id" = 1060500808  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590083 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.679115' WHERE "spree_products"."id" = 1060500808 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.680166' WHERE "spree_products"."id" = 1060500808  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590084 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.680993' WHERE "spree_products"."id" = 1060500808 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500808 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.681884' WHERE "spree_products"."id" = 1060500808  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590085 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.682710' WHERE "spree_products"."id" = 1060500808 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500808) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:48.684798' WHERE "spree_products"."id" = 1060500808 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500808 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.691152' WHERE "spree_products"."id" = 1060500809 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500809], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.692173' WHERE "spree_products"."id" = 1060500809  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590086 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.693341' WHERE "spree_products"."id" = 1060500809  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500809  (1.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835058], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500809, "updated_at" = '2012-10-20 09:32:48.700040' WHERE "spree_product_properties"."id" = 1073273330 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500809) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451642 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500809 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500809, 558398762) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451644 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451644], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500809, 558398765) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451642 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398762 AND "spree_taxons"."taxonomy_id" = 854451642 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398762]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398762], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451642], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398762]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398766]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398766 THEN 558398762 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398762]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398766]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398766 AND "spree_taxons"."taxonomy_id" = 854451642 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398766]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398766], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451642], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398766]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398767]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398767 THEN 558398766 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398766]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398767]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500809, 558398766)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500809, 558398767) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500809) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500809 AND "spree_option_types"."id" = 935339244 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500809) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339244], ["position", 1], ["product_id", 1060500809], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.726873' WHERE "spree_products"."id" = 1060500809 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500809], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.727846' WHERE "spree_products"."id" = 1060500809  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590087, 979460201) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.729906' WHERE "spree_products"."id" = 1060500809 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500809], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.730695' WHERE "spree_products"."id" = 1060500809  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590088, 979460202) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.732546' WHERE "spree_products"."id" = 1060500809 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500809], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.733425' WHERE "spree_products"."id" = 1060500809  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590089, 979460203) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500809]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500809) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590087 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590088 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590089 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500809) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.745788' WHERE "spree_products"."id" = 1060500809  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590087 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.746665' WHERE "spree_products"."id" = 1060500809 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.747496' WHERE "spree_products"."id" = 1060500809  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590088 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.748211' WHERE "spree_products"."id" = 1060500809 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500809 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.749230' WHERE "spree_products"."id" = 1060500809  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590089 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.749961' WHERE "spree_products"."id" = 1060500809 Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500809) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:48.751776' WHERE "spree_products"."id" = 1060500809 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500809 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.6ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.800839' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.801828' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590090 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.803166' WHERE "spree_products"."id" = 1060500810  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500810  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835059], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500810, "updated_at" = '2012-10-20 09:32:48.808274' WHERE "spree_product_properties"."id" = 1073273331 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835058], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500810, "updated_at" = '2012-10-20 09:32:48.810609' WHERE "spree_product_properties"."id" = 1073273332 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["product_id", nil], ["property_id", 905835060], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500810, "updated_at" = '2012-10-20 09:32:48.813104' WHERE "spree_product_properties"."id" = 1073273333 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500810) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451645 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451645], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500810 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500810, 558398768) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451642 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398762 AND "spree_taxons"."taxonomy_id" = 854451642 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398762]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398762], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451642], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398762]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398769]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398769 THEN 558398762 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398762]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398769]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500810, 558398769)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500810, 558398762) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500810) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500810 AND "spree_option_types"."id" = 935339244 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500810) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339244], ["position", 1], ["product_id", 1060500810], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.835228' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.836397' WHERE "spree_products"."id" = 1060500810  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590091, 979460201) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.838208' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.841443' WHERE "spree_products"."id" = 1060500810  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590092, 979460202) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339244 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.843599' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.844500' WHERE "spree_products"."id" = 1060500810  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590093, 979460203) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500810]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500810 AND "spree_option_types"."id" = 935339245 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500810) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["option_type_id", 935339245], ["position", 2], ["product_id", 1060500810], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339245 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339245) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339245], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.856536' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.862248' WHERE "spree_products"."id" = 1060500810  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590094, 979460204) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339245 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339245) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "colour"], ["option_type_id", 935339245], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.866901' WHERE "spree_products"."id" = 1060500810 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500810], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.867979' WHERE "spree_products"."id" = 1060500810  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590095, 979460205) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500810]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500810) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590091 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590092 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590093 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590094 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590095 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500810) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.883668' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590091 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.885005' WHERE "spree_products"."id" = 1060500810 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.886232' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590092 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.887680' WHERE "spree_products"."id" = 1060500810 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.888695' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590093 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.889436' WHERE "spree_products"."id" = 1060500810 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.890311' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590094 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.890931' WHERE "spree_products"."id" = 1060500810 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500810 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.892105' WHERE "spree_products"."id" = 1060500810  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590095 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:48.892854' WHERE "spree_products"."id" = 1060500810 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500810) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:32:48.895352' WHERE "spree_products"."id" = 1060500810 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500810 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (36.2ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500809 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500810 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500808 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500808 ORDER BY spree_option_types.position Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590083 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590084 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339244 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590085 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (3.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (1.4ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451646 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451646], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (3.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451646], ["updated_at", Sat, 20 Oct 2012 09:32:48 UTC +00:00]]  (3.1ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (2.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.076527' WHERE "spree_products"."id" = 1060500811 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500811], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.077933' WHERE "spree_products"."id" = 1060500811  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590096 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.079290' WHERE "spree_products"."id" = 1060500811  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500811  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835061], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500811, "updated_at" = '2012-10-20 09:32:49.086439' WHERE "spree_product_properties"."id" = 1073273334 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451646 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500811 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500811, 558398770) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451647 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451647], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500811, 558398772) Current value to assign : Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500811 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500811) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339246], ["position", 1], ["product_id", 1060500811], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339246) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339246], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.114001' WHERE "spree_products"."id" = 1060500811 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500811], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.115314' WHERE "spree_products"."id" = 1060500811  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590097, 979460206) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500811]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500811 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339246) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339246], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.122931' WHERE "spree_products"."id" = 1060500811 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500811], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.123872' WHERE "spree_products"."id" = 1060500811  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590098, 979460207) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500811]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1 Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500811 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339246) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339246], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.131702' WHERE "spree_products"."id" = 1060500811 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500811], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.132933' WHERE "spree_products"."id" = 1060500811  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590099, 979460208) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500811]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590097 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590098 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590099 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.148000' WHERE "spree_products"."id" = 1060500811  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590097 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.149168' WHERE "spree_products"."id" = 1060500811 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.149879' WHERE "spree_products"."id" = 1060500811  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590098 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.150551' WHERE "spree_products"."id" = 1060500811 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500811 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.152077' WHERE "spree_products"."id" = 1060500811  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590099 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.152776' WHERE "spree_products"."id" = 1060500811 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500811) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:49.154622' WHERE "spree_products"."id" = 1060500811 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500811 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (5.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.165551' WHERE "spree_products"."id" = 1060500812 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500812], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.166393' WHERE "spree_products"."id" = 1060500812  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590100 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.167551' WHERE "spree_products"."id" = 1060500812  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500812  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835062], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500812, "updated_at" = '2012-10-20 09:32:49.173710' WHERE "spree_product_properties"."id" = 1073273335 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451646 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500812 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500812, 558398770) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451648 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451648], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500812, 558398773) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451646 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398770 AND "spree_taxons"."taxonomy_id" = 854451646 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398770]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398770], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451646], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398770]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398774]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398774 THEN 558398770 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398770]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398774]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398774 AND "spree_taxons"."taxonomy_id" = 854451646 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398774]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398774], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451646], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398774]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398775]] SQL (0.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398775 THEN 558398774 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398774]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398775]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500812, 558398774)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500812, 558398775) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500812 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500812) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339246], ["position", 1], ["product_id", 1060500812], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.208437' WHERE "spree_products"."id" = 1060500812 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500812], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.209551' WHERE "spree_products"."id" = 1060500812  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590101, 979460206) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500812]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500812 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.215621' WHERE "spree_products"."id" = 1060500812 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500812], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.216552' WHERE "spree_products"."id" = 1060500812  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590102, 979460207) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500812]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500812 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.222131' WHERE "spree_products"."id" = 1060500812 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500812], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.223024' WHERE "spree_products"."id" = 1060500812  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590103, 979460208) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500812]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590101 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590102 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590103 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.236219' WHERE "spree_products"."id" = 1060500812  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590101 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.237409' WHERE "spree_products"."id" = 1060500812 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.238414' WHERE "spree_products"."id" = 1060500812  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590102 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.239064' WHERE "spree_products"."id" = 1060500812 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500812 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.239695' WHERE "spree_products"."id" = 1060500812  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590103 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.240381' WHERE "spree_products"."id" = 1060500812 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500812) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:49.242412' WHERE "spree_products"."id" = 1060500812 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500812 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.248380' WHERE "spree_products"."id" = 1060500813 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.249244' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590104 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.250206' WHERE "spree_products"."id" = 1060500813  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500813  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835063], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500813, "updated_at" = '2012-10-20 09:32:49.254831' WHERE "spree_product_properties"."id" = 1073273336 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835062], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500813, "updated_at" = '2012-10-20 09:32:49.257296' WHERE "spree_product_properties"."id" = 1073273337 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::Property Load (3.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835064], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500813, "updated_at" = '2012-10-20 09:32:49.264031' WHERE "spree_product_properties"."id" = 1073273338 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451649 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451649], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500813 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500813, 558398776) Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451646 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398770 AND "spree_taxons"."taxonomy_id" = 854451646 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398770]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398770], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451646], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398770]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398777]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398777 THEN 558398770 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398770]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398777]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500813, 558398777)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500813, 558398770) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500813 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500813) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339246], ["position", 1], ["product_id", 1060500813], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.289843' WHERE "spree_products"."id" = 1060500813 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.291119' WHERE "spree_products"."id" = 1060500813  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590105, 979460206) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500813]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500813 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.297411' WHERE "spree_products"."id" = 1060500813 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.298553' WHERE "spree_products"."id" = 1060500813  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590106, 979460207) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500813]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500813 AND "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339246 LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.304951' WHERE "spree_products"."id" = 1060500813 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.305873' WHERE "spree_products"."id" = 1060500813  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590107, 979460208) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500813]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500813 AND "spree_option_types"."id" = 935339247 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500813) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339247], ["position", 2], ["product_id", 1060500813], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339247 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339247) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339247], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.315990' WHERE "spree_products"."id" = 1060500813 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.317130' WHERE "spree_products"."id" = 1060500813  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590108, 979460209) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500813]] Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500813 AND "spree_option_types"."id" = 935339247 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339247 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339247) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "colour"], ["option_type_id", 935339247], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.325055' WHERE "spree_products"."id" = 1060500813 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500813], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.326349' WHERE "spree_products"."id" = 1060500813  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590109, 979460210) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500813]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590105 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590106 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590107 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590108 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590109 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.340964' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590105 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.341791' WHERE "spree_products"."id" = 1060500813 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.342553' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590106 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.343337' WHERE "spree_products"."id" = 1060500813 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.344705' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590107 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.345452' WHERE "spree_products"."id" = 1060500813 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.346259' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590108 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.347184' WHERE "spree_products"."id" = 1060500813 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500813 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.348463' WHERE "spree_products"."id" = 1060500813  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590109 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.349093' WHERE "spree_products"."id" = 1060500813 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500813) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:32:49.351040' WHERE "spree_products"."id" = 1060500813 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500813 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (16.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500812 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500813 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500811 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500811 ORDER BY spree_option_types.position Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590097 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590098 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339246 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590099 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (2.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (33.1ms) DELETE FROM "spree_option_types" SQL (2.1ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (5.9ms) DELETE FROM "spree_product_properties" SQL (2.5ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (3.7ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451650 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451650], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (8.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451650], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants"  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.553890' WHERE "spree_products"."id" = 1060500814 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500814], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.555122' WHERE "spree_products"."id" = 1060500814  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590110 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.556781' WHERE "spree_products"."id" = 1060500814  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500814  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835065], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500814, "updated_at" = '2012-10-20 09:32:49.562021' WHERE "spree_product_properties"."id" = 1073273339 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451650 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500814 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500814, 558398778) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451651 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451651], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500814, 558398780) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500814 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500814) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339248], ["position", 1], ["product_id", 1060500814], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339248) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339248], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.589815' WHERE "spree_products"."id" = 1060500814 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500814], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.591066' WHERE "spree_products"."id" = 1060500814  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590111, 979460211) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500814]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500814 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339248) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339248], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.599245' WHERE "spree_products"."id" = 1060500814 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500814], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.600361' WHERE "spree_products"."id" = 1060500814  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590112, 979460212) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500814]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500814 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339248) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339248], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.608768' WHERE "spree_products"."id" = 1060500814 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500814], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.609556' WHERE "spree_products"."id" = 1060500814  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590113, 979460213) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500814]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590111 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590112 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590113 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.623197' WHERE "spree_products"."id" = 1060500814  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590111 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.624282' WHERE "spree_products"."id" = 1060500814 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.625258' WHERE "spree_products"."id" = 1060500814  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590112 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.626356' WHERE "spree_products"."id" = 1060500814 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500814 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.627868' WHERE "spree_products"."id" = 1060500814  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590113 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.628515' WHERE "spree_products"."id" = 1060500814 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500814) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:49.630623' WHERE "spree_products"."id" = 1060500814 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.636679' WHERE "spree_products"."id" = 1060500815 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500815], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.637557' WHERE "spree_products"."id" = 1060500815  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590114 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.638655' WHERE "spree_products"."id" = 1060500815  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500815  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835066], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500815, "updated_at" = '2012-10-20 09:32:49.643557' WHERE "spree_product_properties"."id" = 1073273340 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451650 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500815 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500815, 558398778) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451652 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451652], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500815, 558398781) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451650 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398778 AND "spree_taxons"."taxonomy_id" = 854451650 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398778]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398778], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451650], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398778]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398782]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398782 THEN 558398778 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398778]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398782]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398782 AND "spree_taxons"."taxonomy_id" = 854451650 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398782]] SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398782], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451650], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398782]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398783]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398783 THEN 558398782 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398782]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398783]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500815, 558398782)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500815, 558398783) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500815 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500815) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339248], ["position", 1], ["product_id", 1060500815], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.680994' WHERE "spree_products"."id" = 1060500815 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500815], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.682117' WHERE "spree_products"."id" = 1060500815  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590115, 979460211) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500815]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500815 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.689069' WHERE "spree_products"."id" = 1060500815 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500815], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.690100' WHERE "spree_products"."id" = 1060500815  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590116, 979460212) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500815]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500815 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.695612' WHERE "spree_products"."id" = 1060500815 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500815], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.696499' WHERE "spree_products"."id" = 1060500815  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590117, 979460213) Spree::Product Load (1.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500815]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590115 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590116 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590117 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.711195' WHERE "spree_products"."id" = 1060500815  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590115 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.712232' WHERE "spree_products"."id" = 1060500815 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.713331' WHERE "spree_products"."id" = 1060500815  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590116 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.714030' WHERE "spree_products"."id" = 1060500815 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500815 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.714938' WHERE "spree_products"."id" = 1060500815  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590117 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.715711' WHERE "spree_products"."id" = 1060500815 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500815) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:49.718084' WHERE "spree_products"."id" = 1060500815 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.724037' WHERE "spree_products"."id" = 1060500816 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.725185' WHERE "spree_products"."id" = 1060500816  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590118 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.726558' WHERE "spree_products"."id" = 1060500816  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500816  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835067], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500816, "updated_at" = '2012-10-20 09:32:49.732335' WHERE "spree_product_properties"."id" = 1073273341 Created New ProductProperty # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835066], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500816, "updated_at" = '2012-10-20 09:32:49.735124' WHERE "spree_product_properties"."id" = 1073273342 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["product_id", nil], ["property_id", 905835068], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500816, "updated_at" = '2012-10-20 09:32:49.741558' WHERE "spree_product_properties"."id" = 1073273343 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451653 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451653], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500816 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500816, 558398784) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451650 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398778 AND "spree_taxons"."taxonomy_id" = 854451650 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398778]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398778], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451650], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398778]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398785]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398785 THEN 558398778 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398778]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398785]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500816, 558398785)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500816, 558398778) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500816 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (80.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500816) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339248], ["position", 1], ["product_id", 1060500816], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.847006' WHERE "spree_products"."id" = 1060500816 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.848104' WHERE "spree_products"."id" = 1060500816  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590119, 979460211) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500816]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500816 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.853932' WHERE "spree_products"."id" = 1060500816 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.854772' WHERE "spree_products"."id" = 1060500816  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590120, 979460212) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500816]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500816 AND "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339248 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.860560' WHERE "spree_products"."id" = 1060500816 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.861557' WHERE "spree_products"."id" = 1060500816  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590121, 979460213) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500816]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500816 AND "spree_option_types"."id" = 935339249 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500816) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["option_type_id", 935339249], ["position", 2], ["product_id", 1060500816], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339249 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339249) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339249], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.875795' WHERE "spree_products"."id" = 1060500816 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.876854' WHERE "spree_products"."id" = 1060500816  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590122, 979460214) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500816]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500816 AND "spree_option_types"."id" = 935339249 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339249 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339249) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00], ["name", "colour"], ["option_type_id", 935339249], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:49 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.884111' WHERE "spree_products"."id" = 1060500816 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500816], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.884861' WHERE "spree_products"."id" = 1060500816  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590123, 979460215) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500816]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590119 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590120 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590121 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590122 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590123 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.899497' WHERE "spree_products"."id" = 1060500816  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590119 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.900560' WHERE "spree_products"."id" = 1060500816 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.901746' WHERE "spree_products"."id" = 1060500816  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590120 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.902559' WHERE "spree_products"."id" = 1060500816 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.903608' WHERE "spree_products"."id" = 1060500816  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590121 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.904407' WHERE "spree_products"."id" = 1060500816 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.905744' WHERE "spree_products"."id" = 1060500816  (1.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590122 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.953303' WHERE "spree_products"."id" = 1060500816 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500816 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.955400' WHERE "spree_products"."id" = 1060500816  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590123 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:49.956462' WHERE "spree_products"."id" = 1060500816 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500816) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:32:49.958818' WHERE "spree_products"."id" = 1060500816  (12.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500815 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500816 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500814 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500814 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590111 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590112 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339248 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590113 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (39.7ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451654 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451654], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]]  (4.4ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451654], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]]  (2.4ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) begin transaction Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.089112' WHERE "spree_products"."id" = 1060500817 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500817], ["sku", "MV_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.091560' WHERE "spree_products"."id" = 1060500817  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590124 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.092846' WHERE "spree_products"."id" = 1060500817  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500817  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500817 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500817) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339250], ["position", 1], ["product_id", 1060500817], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500817 AND "spree_option_types"."id" = 935339251 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500817) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339251], ["position", 2], ["product_id", 1060500817], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339250) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339250], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339251) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "colour"], ["option_type_id", 935339251], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.112982' WHERE "spree_products"."id" = 1060500817 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500817], ["sku", "MV_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.114055' WHERE "spree_products"."id" = 1060500817  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590125, 979460216)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590125, 979460217) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339250) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339250], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.122295' WHERE "spree_products"."id" = 1060500817 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500817], ["sku", "MV_001_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.123367' WHERE "spree_products"."id" = 1060500817  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590126, 979460218)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590126, 979460217) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500817]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500817) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500817 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339250) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339250], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.135191' WHERE "spree_products"."id" = 1060500817 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500817], ["sku", "MV_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.136539' WHERE "spree_products"."id" = 1060500817  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590127, 979460219) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500817]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500817) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (2.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590125 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590126 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590127 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500817) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.150076' WHERE "spree_products"."id" = 1060500817  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590125 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.151011' WHERE "spree_products"."id" = 1060500817 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.151886' WHERE "spree_products"."id" = 1060500817  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590126 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.152618' WHERE "spree_products"."id" = 1060500817 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500817 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.153563' WHERE "spree_products"."id" = 1060500817  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590127 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.154563' WHERE "spree_products"."id" = 1060500817 Saving csv row ["MV_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "mime_type:jpeg, PDF;print_type:colour", nil, "mime_type:PNG", "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500817) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:50.157133' WHERE "spree_products"."id" = 1060500817 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500818 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.163563' WHERE "spree_products"."id" = 1060500818 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500818], ["sku", "MV_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.164563' WHERE "spree_products"."id" = 1060500818  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590128 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.165563' WHERE "spree_products"."id" = 1060500818  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500818  (3.8ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500818 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500818) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339250], ["position", 1], ["product_id", 1060500818], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500818 AND "spree_option_types"."id" = 935339251 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500818) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339251], ["position", 2], ["product_id", 1060500818], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339251) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339251], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500818 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.182133' WHERE "spree_products"."id" = 1060500818 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500818], ["sku", "MV_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.183234' WHERE "spree_products"."id" = 1060500818  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590129, 979460220)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590129, 979460216) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500818]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500818) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500818 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500818 AND "spree_option_types"."id" = 935339251 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500818 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.194138' WHERE "spree_products"."id" = 1060500818 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500818], ["sku", "MV_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.195362' WHERE "spree_products"."id" = 1060500818  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590130, 979460220)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590130, 979460219) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500818]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500818) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590129 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590130 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500818) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500818 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.204371' WHERE "spree_products"."id" = 1060500818  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590129 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.205564' WHERE "spree_products"."id" = 1060500818 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500818 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.206717' WHERE "spree_products"."id" = 1060500818  (6.7ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590130 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.214494' WHERE "spree_products"."id" = 1060500818 Saving csv row ["MV_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "mime_type:jpeg;print_type:black_white", nil, "mime_type:PNG;print_type:black_white", "5|4"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500818) LIMIT 1  (30.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500818 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-20 09:32:50.249205' WHERE "spree_products"."id" = 1060500818 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.258709' WHERE "spree_products"."id" = 1060500819 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.259822' WHERE "spree_products"."id" = 1060500819  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590131 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.261074' WHERE "spree_products"."id" = 1060500819  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500819  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500819) ORDER BY position DESC LIMIT 1 SQL (7.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339250], ["position", 1], ["product_id", 1060500819], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339251 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500819) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339251], ["position", 2], ["product_id", 1060500819], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "size"], ["position", 0], ["presentation", "Size"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339252 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500819) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339252], ["position", 3], ["product_id", 1060500819], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339252 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339252) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "large"], ["option_type_id", 935339252], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.287827' WHERE "spree_products"."id" = 1060500819 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.288898' WHERE "spree_products"."id" = 1060500819  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590132, 979460217)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590132, 979460221)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590132, 979460216) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339251) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "sepia"], ["option_type_id", 935339251], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339252 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.294751' WHERE "spree_products"."id" = 1060500819 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.295778' WHERE "spree_products"."id" = 1060500819  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590133, 979460222)  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590133, 979460221)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590133, 979460216) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500819]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.302565' WHERE "spree_products"."id" = 1060500819 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.303951' WHERE "spree_products"."id" = 1060500819  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590134, 979460219) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500819]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500819) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339250 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339250 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.310993' WHERE "spree_products"."id" = 1060500819 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.311986' WHERE "spree_products"."id" = 1060500819  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590135, 979460218) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500819]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500819 AND "spree_option_types"."id" = 935339251 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339251 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500819 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.317471' WHERE "spree_products"."id" = 1060500819 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500819], ["sku", "MV_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.318521' WHERE "spree_products"."id" = 1060500819  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590136, 979460220) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500819]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500819) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row ["MV_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNG", "mime_type:PDF|print_type:black_white", nil, "12|4|7|12"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500819) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500819 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (19.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500817 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500817 ORDER BY spree_option_types.position Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590125 Booted Spree using version 1.1.3 SQL (5.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.469219' WHERE "spree_products"."id" = 1060500820 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500820], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.476752' WHERE "spree_products"."id" = 1060500820  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590137 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.478416' WHERE "spree_products"."id" = 1060500820  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500820  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["product_id", nil], ["property_id", 905835069], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500820, "updated_at" = '2012-10-20 09:32:50.484230' WHERE "spree_product_properties"."id" = 1073273344 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451655 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451655], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500820 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500820, 558398788) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451656 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451656], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500820, 558398789) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500820 AND "spree_option_types"."id" = 935339253 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500820) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["option_type_id", 935339253], ["position", 1], ["product_id", 1060500820], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339253) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339253], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.511029' WHERE "spree_products"."id" = 1060500820 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500820], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.531956' WHERE "spree_products"."id" = 1060500820  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590138, 979460223) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339253) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339253], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.536779' WHERE "spree_products"."id" = 1060500820 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500820], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.538109' WHERE "spree_products"."id" = 1060500820  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590139, 979460224) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::OptionValue Load (3.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339253) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339253], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.544568' WHERE "spree_products"."id" = 1060500820 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500820], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.545971' WHERE "spree_products"."id" = 1060500820  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590140, 979460225) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500820]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590138 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590139 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590140 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.558044' WHERE "spree_products"."id" = 1060500820  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590138 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.559219' WHERE "spree_products"."id" = 1060500820 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.560528' WHERE "spree_products"."id" = 1060500820  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590139 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.561314' WHERE "spree_products"."id" = 1060500820 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500820 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.562530' WHERE "spree_products"."id" = 1060500820  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590140 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:50.563158' WHERE "spree_products"."id" = 1060500820 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1 Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590137 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (2.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:32:50 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "14/02/2011", "399.99", "320", "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500820) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:32:52.558128' WHERE "spree_products"."id" = 1060500820 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.570320' WHERE "spree_products"."id" = 1060500821 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500821], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.571593' WHERE "spree_products"."id" = 1060500821  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590141 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.573469' WHERE "spree_products"."id" = 1060500821  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500821  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["product_id", nil], ["property_id", 905835070], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500821, "updated_at" = '2012-10-20 09:32:52.581594' WHERE "spree_product_properties"."id" = 1073273345 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451655 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500821 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500821, 558398788) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["name", "Landscape"], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451657 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451657], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500821, 558398790) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451658 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451658], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500821, 558398791) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500821 AND "spree_option_types"."id" = 935339253 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500821) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["option_type_id", 935339253], ["position", 1], ["product_id", 1060500821], ["updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.614573' WHERE "spree_products"."id" = 1060500821 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500821], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.615738' WHERE "spree_products"."id" = 1060500821  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590142, 979460223) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.618674' WHERE "spree_products"."id" = 1060500821 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500821], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.619854' WHERE "spree_products"."id" = 1060500821  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590143, 979460224) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.622277' WHERE "spree_products"."id" = 1060500821 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500821], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.623390' WHERE "spree_products"."id" = 1060500821  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590144, 979460225) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500821]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590142 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590143 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590144 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.637449' WHERE "spree_products"."id" = 1060500821  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590142 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.638582' WHERE "spree_products"."id" = 1060500821 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.639904' WHERE "spree_products"."id" = 1060500821  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590143 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.640700' WHERE "spree_products"."id" = 1060500821 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500821 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.641659' WHERE "spree_products"."id" = 1060500821  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590144 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:52.642632' WHERE "spree_products"."id" = 1060500821 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590141 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sat, 20 Oct 2012 09:32:52 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "14/05/2011", "100", "30", "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500821) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500821 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:32:59.141846' WHERE "spree_products"."id" = 1060500821 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.153387' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.154833' WHERE "spree_products"."id" = 1060500822  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590145 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.156593' WHERE "spree_products"."id" = 1060500822  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500822  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["product_id", nil], ["property_id", 905835071], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500822, "updated_at" = '2012-10-20 09:32:59.163570' WHERE "spree_product_properties"."id" = 1073273346 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["product_id", nil], ["property_id", 905835070], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500822, "updated_at" = '2012-10-20 09:32:59.165965' WHERE "spree_product_properties"."id" = 1073273347 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["product_id", nil], ["property_id", 905835072], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500822, "updated_at" = '2012-10-20 09:32:59.169042' WHERE "spree_product_properties"."id" = 1073273348 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451659 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451659], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500822 Product assigned to Taxons : ["Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500822, 558398792) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500822 AND "spree_option_types"."id" = 935339253 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500822) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["option_type_id", 935339253], ["position", 1], ["product_id", 1060500822], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.191234' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.192676' WHERE "spree_products"."id" = 1060500822  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590146, 979460223) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.195676' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.197062' WHERE "spree_products"."id" = 1060500822  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590147, 979460224) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339253 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.199529' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.200784' WHERE "spree_products"."id" = 1060500822  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590148, 979460225) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500822]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500822 AND "spree_option_types"."id" = 935339254 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500822) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["option_type_id", 935339254], ["position", 2], ["product_id", 1060500822], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339254 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339254) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339254], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.213656' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.215154' WHERE "spree_products"."id" = 1060500822  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590149, 979460226) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339254 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339254) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["name", "colour"], ["option_type_id", 935339254], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.219555' WHERE "spree_products"."id" = 1060500822 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500822], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.220676' WHERE "spree_products"."id" = 1060500822  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590150, 979460227) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500822]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590146 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590147 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590148 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590149 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590150 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.235677' WHERE "spree_products"."id" = 1060500822  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590146 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.236849' WHERE "spree_products"."id" = 1060500822 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.238029' WHERE "spree_products"."id" = 1060500822  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590147 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.238821' WHERE "spree_products"."id" = 1060500822 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.239724' WHERE "spree_products"."id" = 1060500822  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590148 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.240847' WHERE "spree_products"."id" = 1060500822 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.243252' WHERE "spree_products"."id" = 1060500822  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590149 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.245288' WHERE "spree_products"."id" = 1060500822 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500822 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.246819' WHERE "spree_products"."id" = 1060500822  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590150 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:32:59.247638' WHERE "spree_products"."id" = 1060500822 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590145 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:32:59 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "01/07/2012", "50.34", "23.34", "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500822) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500822 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:00.148808' WHERE "spree_products"."id" = 1060500822  (30.4ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500820 AND ("spree_variants".is_master = 't') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590137) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500820)) SQL (5.8ms) DELETE FROM "spree_products" SQL (4.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.7ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.9ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.382246' WHERE "spree_products"."id" = 1060500823 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500823], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.383604' WHERE "spree_products"."id" = 1060500823  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590151 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.384924' WHERE "spree_products"."id" = 1060500823  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500823  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["product_id", nil], ["property_id", 905835073], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500823, "updated_at" = '2012-10-20 09:33:00.390796' WHERE "spree_product_properties"."id" = 1073273349 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451660 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451660], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500823 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500823, 558398793) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451661 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451661], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500823, 558398794) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500823 AND "spree_option_types"."id" = 935339255 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500823) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["option_type_id", 935339255], ["position", 1], ["product_id", 1060500823], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339255) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339255], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.416779' WHERE "spree_products"."id" = 1060500823 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500823], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.417977' WHERE "spree_products"."id" = 1060500823  (0.7ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590152, 979460228) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339255) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339255], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.422115' WHERE "spree_products"."id" = 1060500823 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500823], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.423153' WHERE "spree_products"."id" = 1060500823  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590153, 979460229) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339255) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339255], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.426991' WHERE "spree_products"."id" = 1060500823 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500823], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.428205' WHERE "spree_products"."id" = 1060500823  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590154, 979460230) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500823]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590152 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590153 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590154 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.440420' WHERE "spree_products"."id" = 1060500823  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590152 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.441319' WHERE "spree_products"."id" = 1060500823 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.442435' WHERE "spree_products"."id" = 1060500823  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590153 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.443460' WHERE "spree_products"."id" = 1060500823 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500823 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.444434' WHERE "spree_products"."id" = 1060500823  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590154 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:00.445281' WHERE "spree_products"."id" = 1060500823 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590151 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:00 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500823) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:01.236594' WHERE "spree_products"."id" = 1060500823 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500823 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.248448' WHERE "spree_products"."id" = 1060500824 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500824], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.250381' WHERE "spree_products"."id" = 1060500824  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590155 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.251702' WHERE "spree_products"."id" = 1060500824  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500824  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["product_id", nil], ["property_id", 905835074], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500824, "updated_at" = '2012-10-20 09:33:01.259028' WHERE "spree_product_properties"."id" = 1073273350 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451660 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500824 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500824, 558398793) Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["name", "Landscape"], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451662 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451662], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (1.6ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500824, 558398795) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451663 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.7ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451663], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500824, 558398796) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500824 AND "spree_option_types"."id" = 935339255 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500824) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["option_type_id", 935339255], ["position", 1], ["product_id", 1060500824], ["updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.290500' WHERE "spree_products"."id" = 1060500824 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500824], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.291500' WHERE "spree_products"."id" = 1060500824  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590156, 979460228) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.295077' WHERE "spree_products"."id" = 1060500824 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500824], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.296307' WHERE "spree_products"."id" = 1060500824  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590157, 979460229) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.299484' WHERE "spree_products"."id" = 1060500824 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500824], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.300327' WHERE "spree_products"."id" = 1060500824  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590158, 979460230) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500824]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (3.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590156 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590157 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590158 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.316382' WHERE "spree_products"."id" = 1060500824  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590156 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.317496' WHERE "spree_products"."id" = 1060500824 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.318655' WHERE "spree_products"."id" = 1060500824  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590157 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.319453' WHERE "spree_products"."id" = 1060500824 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500824 LIMIT 1 SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.320509' WHERE "spree_products"."id" = 1060500824  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590158 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:01.321956' WHERE "spree_products"."id" = 1060500824 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590155 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:01 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500824) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500824 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:07.239945' WHERE "spree_products"."id" = 1060500824 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] succesfully SAVED : ID 1060500824 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.252655' WHERE "spree_products"."id" = 1060500825 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.253739' WHERE "spree_products"."id" = 1060500825  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590159 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.255115' WHERE "spree_products"."id" = 1060500825  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500825  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["product_id", nil], ["property_id", 905835075], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["value", nil]]  (0.8ms) UPDATE "spree_product_properties" SET "product_id" = 1060500825, "updated_at" = '2012-10-20 09:33:07.262538' WHERE "spree_product_properties"."id" = 1073273351 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["product_id", nil], ["property_id", 905835074], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500825, "updated_at" = '2012-10-20 09:33:07.265119' WHERE "spree_product_properties"."id" = 1073273352 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["product_id", nil], ["property_id", 905835076], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500825, "updated_at" = '2012-10-20 09:33:07.268515' WHERE "spree_product_properties"."id" = 1073273353 Created New ProductProperty # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451664 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451664], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500825 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500825, 558398797) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500825 AND "spree_option_types"."id" = 935339255 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500825) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["option_type_id", 935339255], ["position", 1], ["product_id", 1060500825], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.298563' WHERE "spree_products"."id" = 1060500825 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.300198' WHERE "spree_products"."id" = 1060500825  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590160, 979460228) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.303002' WHERE "spree_products"."id" = 1060500825 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.304389' WHERE "spree_products"."id" = 1060500825  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590161, 979460229) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339255 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.307212' WHERE "spree_products"."id" = 1060500825 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.308283' WHERE "spree_products"."id" = 1060500825  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590162, 979460230) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500825]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500825 AND "spree_option_types"."id" = 935339256 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500825) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["option_type_id", 935339256], ["position", 2], ["product_id", 1060500825], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339256 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339256) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339256], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.322221' WHERE "spree_products"."id" = 1060500825 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.323532' WHERE "spree_products"."id" = 1060500825  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590163, 979460231) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339256 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339256) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["name", "colour"], ["option_type_id", 935339256], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.328599' WHERE "spree_products"."id" = 1060500825 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500825], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.329861' WHERE "spree_products"."id" = 1060500825  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590164, 979460232) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500825]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590160 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590161 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590162 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590163 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590164 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.345128' WHERE "spree_products"."id" = 1060500825  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590160 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.346282' WHERE "spree_products"."id" = 1060500825 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.347233' WHERE "spree_products"."id" = 1060500825  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590161 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.348020' WHERE "spree_products"."id" = 1060500825 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.349509' WHERE "spree_products"."id" = 1060500825  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590162 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.350416' WHERE "spree_products"."id" = 1060500825 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.351411' WHERE "spree_products"."id" = 1060500825  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590163 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.352178' WHERE "spree_products"."id" = 1060500825 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500825 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.353487' WHERE "spree_products"."id" = 1060500825  (0.9ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590164 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:07.355729' WHERE "spree_products"."id" = 1060500825 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590159 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:07 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500825) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500825 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:08.304200' WHERE "spree_products"."id" = 1060500825 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500825 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (22.6ms) commit transaction Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500823 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590151) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500823)) SQL (3.1ms) DELETE FROM "spree_products" SQL (2.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (19.7ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.6ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.419545' WHERE "spree_products"."id" = 1060500826 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500826], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.421148' WHERE "spree_products"."id" = 1060500826  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590165 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.422481' WHERE "spree_products"."id" = 1060500826  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500826  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835077], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500826, "updated_at" = '2012-10-20 09:33:08.428791' WHERE "spree_product_properties"."id" = 1073273354 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500826) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451665 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451665], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500826 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500826, 558398798) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451666 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451666], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500826, 558398799) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500826) LIMIT 1 Spree::OptionType Load (1.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500826 AND "spree_option_types"."id" = 935339257 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500826) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339257], ["position", 1], ["product_id", 1060500826], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339257) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339257], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.454526' WHERE "spree_products"."id" = 1060500826 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500826], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.455792' WHERE "spree_products"."id" = 1060500826  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590166, 979460233) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339257) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339257], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.459792' WHERE "spree_products"."id" = 1060500826 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500826], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.460968' WHERE "spree_products"."id" = 1060500826  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590167, 979460234) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339257) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339257], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.465446' WHERE "spree_products"."id" = 1060500826 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500826], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.466381' WHERE "spree_products"."id" = 1060500826  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590168, 979460235) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500826]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500826) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590166 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590167 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590168 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500826) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.479114' WHERE "spree_products"."id" = 1060500826  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590166 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.480178' WHERE "spree_products"."id" = 1060500826 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.481040' WHERE "spree_products"."id" = 1060500826  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590167 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.481792' WHERE "spree_products"."id" = 1060500826 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500826 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.482713' WHERE "spree_products"."id" = 1060500826  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590168 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.483378' WHERE "spree_products"."id" = 1060500826 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500826) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500826 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:08.485377' WHERE "spree_products"."id" = 1060500826 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500826 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.496232' WHERE "spree_products"."id" = 1060500827 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500827], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.499792' WHERE "spree_products"."id" = 1060500827  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590169 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.501127' WHERE "spree_products"."id" = 1060500827  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500827  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835078], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500827, "updated_at" = '2012-10-20 09:33:08.506167' WHERE "spree_product_properties"."id" = 1073273355 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500827) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451665 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500827 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500827, 558398798) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451667 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451667], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500827, 558398800) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451665 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398798 AND "spree_taxons"."taxonomy_id" = 854451665 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398798]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398798], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451665], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398798]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398801]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398801 THEN 558398798 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398798]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398801]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398801 AND "spree_taxons"."taxonomy_id" = 854451665 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398801]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398801], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451665], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398801]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398802]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398802 THEN 558398801 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398801]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398802]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500827, 558398801)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500827, 558398802) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500827) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500827 AND "spree_option_types"."id" = 935339257 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500827) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339257], ["position", 1], ["product_id", 1060500827], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.539101' WHERE "spree_products"."id" = 1060500827 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500827], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.540557' WHERE "spree_products"."id" = 1060500827  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590170, 979460233) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (6.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.592179' WHERE "spree_products"."id" = 1060500827 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500827], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.595984' WHERE "spree_products"."id" = 1060500827  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590171, 979460234) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.598793' WHERE "spree_products"."id" = 1060500827 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500827], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.600240' WHERE "spree_products"."id" = 1060500827  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590172, 979460235) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500827]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500827) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590170 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590171 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590172 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500827) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.615120' WHERE "spree_products"."id" = 1060500827  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590170 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.617114' WHERE "spree_products"."id" = 1060500827 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.618207' WHERE "spree_products"."id" = 1060500827  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590171 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.619264' WHERE "spree_products"."id" = 1060500827 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500827 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.620392' WHERE "spree_products"."id" = 1060500827  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590172 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.621356' WHERE "spree_products"."id" = 1060500827 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500827) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500827 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:08.623911' WHERE "spree_products"."id" = 1060500827 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500827 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.632111' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.633257' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590173 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.634430' WHERE "spree_products"."id" = 1060500828  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500828  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835079], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500828, "updated_at" = '2012-10-20 09:33:08.640316' WHERE "spree_product_properties"."id" = 1073273356 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835078], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", "Example free value"]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500828, "updated_at" = '2012-10-20 09:33:08.642752' WHERE "spree_product_properties"."id" = 1073273357 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835080], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500828, "updated_at" = '2012-10-20 09:33:08.645794' WHERE "spree_product_properties"."id" = 1073273358 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500828) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451668 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451668], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500828 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500828, 558398803) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451665 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398798 AND "spree_taxons"."taxonomy_id" = 854451665 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398798]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398798], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451665], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398798]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398804]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398804 THEN 558398798 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398798]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398804]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500828, 558398804)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500828, 558398798) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500828) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500828 AND "spree_option_types"."id" = 935339257 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500828) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339257], ["position", 1], ["product_id", 1060500828], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.668571' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.669794' WHERE "spree_products"."id" = 1060500828  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590174, 979460233) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.671712' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.673069' WHERE "spree_products"."id" = 1060500828  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590175, 979460234) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339257 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.675139' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.676300' WHERE "spree_products"."id" = 1060500828  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590176, 979460235) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500828]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500828 AND "spree_option_types"."id" = 935339258 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500828) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339258], ["position", 2], ["product_id", 1060500828], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339258 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339258) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339258], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.687150' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.692355' WHERE "spree_products"."id" = 1060500828  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590177, 979460236) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339258 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339258) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "colour"], ["option_type_id", 935339258], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.696671' WHERE "spree_products"."id" = 1060500828 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500828], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.697940' WHERE "spree_products"."id" = 1060500828  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590178, 979460237) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500828]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500828) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590174 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590175 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590176 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590177 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590178 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500828) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.711023' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590174 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.712110' WHERE "spree_products"."id" = 1060500828 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.713263' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590175 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.714023' WHERE "spree_products"."id" = 1060500828 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.715184' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590176 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.716016' WHERE "spree_products"."id" = 1060500828 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.717083' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590177 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.717795' WHERE "spree_products"."id" = 1060500828 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500828 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.718688' WHERE "spree_products"."id" = 1060500828  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590178 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.719754' WHERE "spree_products"."id" = 1060500828 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500828) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:08.722037' WHERE "spree_products"."id" = 1060500828 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500828 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500828 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590173) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500828)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.3ms) rollback transaction SQL (4.8ms) DELETE FROM "spree_products" SQL (0.6ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (5.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (2.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.865440' WHERE "spree_products"."id" = 1060500829 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500829], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.866797' WHERE "spree_products"."id" = 1060500829  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590179 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.868037' WHERE "spree_products"."id" = 1060500829  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.5ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500829  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835081], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500829, "updated_at" = '2012-10-20 09:33:08.873797' WHERE "spree_product_properties"."id" = 1073273359 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500829) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451669 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451669], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500829 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500829, 558398805) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451670 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451670], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500829, 558398806) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500829) LIMIT 1 Spree::OptionType Load (4.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500829 AND "spree_option_types"."id" = 935339259 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (2.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500829) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339259], ["position", 1], ["product_id", 1060500829], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339259) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339259], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.903248' WHERE "spree_products"."id" = 1060500829 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500829], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.904797' WHERE "spree_products"."id" = 1060500829  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590180, 979460238) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339259) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339259], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.908343' WHERE "spree_products"."id" = 1060500829 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500829], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.909507' WHERE "spree_products"."id" = 1060500829  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590181, 979460239) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339259) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339259], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.913097' WHERE "spree_products"."id" = 1060500829 SQL (0.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500829], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.914797' WHERE "spree_products"."id" = 1060500829  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590182, 979460240) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500829]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500829) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590180 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590181 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590182 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500829) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.925917' WHERE "spree_products"."id" = 1060500829  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590180 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.927226' WHERE "spree_products"."id" = 1060500829 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.928410' WHERE "spree_products"."id" = 1060500829  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590181 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.929663' WHERE "spree_products"."id" = 1060500829 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500829 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.930975' WHERE "spree_products"."id" = 1060500829  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590182 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.932108' WHERE "spree_products"."id" = 1060500829 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500829) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500829 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:08.934208' WHERE "spree_products"."id" = 1060500829 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500829 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.941121' WHERE "spree_products"."id" = 1060500830 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500830], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.942285' WHERE "spree_products"."id" = 1060500830  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590183 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.943574' WHERE "spree_products"."id" = 1060500830  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500830  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["product_id", nil], ["property_id", 905835082], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500830, "updated_at" = '2012-10-20 09:33:08.949209' WHERE "spree_product_properties"."id" = 1073273360 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500830) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451669 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500830 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500830, 558398805) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451671 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451671], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500830, 558398807) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451669 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398805 AND "spree_taxons"."taxonomy_id" = 854451669 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398805]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398805], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451669], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398805]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398808]] SQL (0.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398808 THEN 558398805 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398805]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398808]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398808 AND "spree_taxons"."taxonomy_id" = 854451669 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398808]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398808], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451669], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398808]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398809]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398809 THEN 558398808 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398808]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398809]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500830, 558398808)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500830, 558398809) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500830) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500830 AND "spree_option_types"."id" = 935339259 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500830) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00], ["option_type_id", 935339259], ["position", 1], ["product_id", 1060500830], ["updated_at", Sat, 20 Oct 2012 09:33:08 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.978048' WHERE "spree_products"."id" = 1060500830 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500830], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.979204' WHERE "spree_products"."id" = 1060500830  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590184, 979460238) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.981178' WHERE "spree_products"."id" = 1060500830 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500830], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.982140' WHERE "spree_products"."id" = 1060500830  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590185, 979460239) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.984281' WHERE "spree_products"."id" = 1060500830 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500830], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:08.985253' WHERE "spree_products"."id" = 1060500830  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590186, 979460240) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500830]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500830) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590184 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590185 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590186 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500830) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.001159' WHERE "spree_products"."id" = 1060500830  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590184 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.002167' WHERE "spree_products"."id" = 1060500830 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.003267' WHERE "spree_products"."id" = 1060500830  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590185 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.004037' WHERE "spree_products"."id" = 1060500830 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500830 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.004915' WHERE "spree_products"."id" = 1060500830  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590186 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.005683' WHERE "spree_products"."id" = 1060500830 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500830) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500830 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:09.007676' WHERE "spree_products"."id" = 1060500830 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500830 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.014340' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.015455' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590187 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.016514' WHERE "spree_products"."id" = 1060500831  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500831  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["product_id", nil], ["property_id", 905835083], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500831, "updated_at" = '2012-10-20 09:33:09.021699' WHERE "spree_product_properties"."id" = 1073273361 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["product_id", nil], ["property_id", 905835082], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500831, "updated_at" = '2012-10-20 09:33:09.023759' WHERE "spree_product_properties"."id" = 1073273362 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["product_id", nil], ["property_id", 905835084], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500831, "updated_at" = '2012-10-20 09:33:09.026799' WHERE "spree_product_properties"."id" = 1073273363 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500831) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451672 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451672], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500831 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500831, 558398810) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451669 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398805 AND "spree_taxons"."taxonomy_id" = 854451669 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398805]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398805], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451669], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398805]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398811]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398811 THEN 558398805 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398805]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398811]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500831, 558398811)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500831, 558398805) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500831) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (5.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500831 AND "spree_option_types"."id" = 935339259 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500831) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["option_type_id", 935339259], ["position", 1], ["product_id", 1060500831], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.099442' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.100443' WHERE "spree_products"."id" = 1060500831  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590188, 979460238) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.102600' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.103700' WHERE "spree_products"."id" = 1060500831  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590189, 979460239) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339259 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.106171' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.107240' WHERE "spree_products"."id" = 1060500831  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590190, 979460240) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500831]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500831 AND "spree_option_types"."id" = 935339260 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500831) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["option_type_id", 935339260], ["position", 2], ["product_id", 1060500831], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339260 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339260) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339260], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.118612' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.119746' WHERE "spree_products"."id" = 1060500831  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590191, 979460241) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339260 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339260) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "colour"], ["option_type_id", 935339260], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.124772' WHERE "spree_products"."id" = 1060500831 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500831], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.125800' WHERE "spree_products"."id" = 1060500831  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590192, 979460242) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500831]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500831) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590188 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590189 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590190 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590191 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590192 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500831) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.140902' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590188 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.142058' WHERE "spree_products"."id" = 1060500831 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.143083' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590189 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.143800' WHERE "spree_products"."id" = 1060500831 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.144987' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590190 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.145952' WHERE "spree_products"."id" = 1060500831 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.146960' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590191 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.147759' WHERE "spree_products"."id" = 1060500831 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500831 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.148498' WHERE "spree_products"."id" = 1060500831  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590192 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.149499' WHERE "spree_products"."id" = 1060500831 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500831) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:09.151615' WHERE "spree_products"."id" = 1060500831 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500831 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.2ms) commit transaction Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500831 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590187) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500831)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (19.3ms) DELETE FROM "spree_products" SQL (1.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.338803' WHERE "spree_products"."id" = 1060500832 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500832], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.340244' WHERE "spree_products"."id" = 1060500832  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590193 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.341978' WHERE "spree_products"."id" = 1060500832  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500832  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["product_id", nil], ["property_id", 905835085], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500832, "updated_at" = '2012-10-20 09:33:09.347752' WHERE "spree_product_properties"."id" = 1073273364 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1 Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451673 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451673], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500832 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500832, 558398812) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451674 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451674], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500832, 558398813) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500832 AND "spree_option_types"."id" = 935339261 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500832) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["option_type_id", 935339261], ["position", 1], ["product_id", 1060500832], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339261) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339261], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.370889' WHERE "spree_products"."id" = 1060500832 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500832], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.371949' WHERE "spree_products"."id" = 1060500832  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590194, 979460243) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339261) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339261], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.376762' WHERE "spree_products"."id" = 1060500832 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500832], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.377612' WHERE "spree_products"."id" = 1060500832  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590195, 979460244) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339261) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339261], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.381973' WHERE "spree_products"."id" = 1060500832 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500832], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.385803' WHERE "spree_products"."id" = 1060500832  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590196, 979460245) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500832]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590194 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590195 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590196 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.401493' WHERE "spree_products"."id" = 1060500832  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590194 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.402452' WHERE "spree_products"."id" = 1060500832 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.403152' WHERE "spree_products"."id" = 1060500832  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590195 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.404115' WHERE "spree_products"."id" = 1060500832 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500832 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.405055' WHERE "spree_products"."id" = 1060500832  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590196 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:09.405783' WHERE "spree_products"."id" = 1060500832 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590193 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:09 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1 Spree::Asset Load (5.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:10 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1 Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:11 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500832) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:12.011423' WHERE "spree_products"."id" = 1060500832 Row ["MULTI_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg", "fixtures/images/DEMO_001_ror_bag.jpeg:more random alt text", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500832 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.024956' WHERE "spree_products"."id" = 1060500833 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500833], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.027319' WHERE "spree_products"."id" = 1060500833  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590197 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.029031' WHERE "spree_products"."id" = 1060500833  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500833  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["product_id", nil], ["property_id", 905835086], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500833, "updated_at" = '2012-10-20 09:33:12.035805' WHERE "spree_product_properties"."id" = 1073273365 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451673 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500833 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500833, 558398812) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["name", "Landscape"], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451675 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451675], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500833, 558398814) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451676 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451676], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500833, 558398815) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500833 AND "spree_option_types"."id" = 935339261 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500833) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["option_type_id", 935339261], ["position", 1], ["product_id", 1060500833], ["updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.065437' WHERE "spree_products"."id" = 1060500833 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500833], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.066930' WHERE "spree_products"."id" = 1060500833  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590198, 979460243) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.069401' WHERE "spree_products"."id" = 1060500833 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500833], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.070497' WHERE "spree_products"."id" = 1060500833  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590199, 979460244) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339261 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.073452' WHERE "spree_products"."id" = 1060500833 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500833], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.074697' WHERE "spree_products"."id" = 1060500833  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590200, 979460245) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500833]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590198 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590199 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590200 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.087532' WHERE "spree_products"."id" = 1060500833  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590198 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.088545' WHERE "spree_products"."id" = 1060500833 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.089722' WHERE "spree_products"."id" = 1060500833  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590199 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.090526' WHERE "spree_products"."id" = 1060500833 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500833 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.091683' WHERE "spree_products"."id" = 1060500833  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590200 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:12.092612' WHERE "spree_products"."id" = 1060500833 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590197 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:12 UTC +00:00], ["attachment_width", 2424], ["position", 4], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (2.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sat, 20 Oct 2012 09:33:18 UTC +00:00], ["attachment_width", 240], ["position", 5], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign : Current value to assign : Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500833) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500833 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:19.629931' WHERE "spree_products"."id" = 1060500833 Row ["MULTI_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg:some random alt text|fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500833 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.1ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500832 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590193 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Booted Spree using version 1.1.3 SQL (5.8ms) DELETE FROM "spree_products" SQL (7.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (14.1ms) DELETE FROM "spree_option_values" SQL (3.5ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (3.8ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451677 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451677], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451677], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]]  (5.0ms) commit transaction  (0.1ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451677], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]]  (2.5ms) commit transaction Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" SQL (3.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (5.9ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (2.7ms) DELETE FROM "spree_taxonomies" SQL (3.2ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451678 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451678], ["updated_at", Sat, 20 Oct 2012 09:33:19 UTC +00:00]]  (17.0ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451678], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451678], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (1.9ms) commit transaction Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451678 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451678 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451678 LIMIT 1 Booted Spree using version 1.1.3 SQL (6.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (3.6ms) DELETE FROM "spree_product_properties" SQL (2.0ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.9ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451679], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (2.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (1.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451679], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (2.4ms) commit transaction  (1.0ms) begin transaction  (0.6ms) UPDATE "spree_taxons" SET "parent_id" = 558398822, "updated_at" = '2012-10-20 09:33:20.211660' WHERE "spree_taxons"."id" = 558398823 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398822]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398823]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398823 THEN 558398822 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398822]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398823]]  (3.9ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398822 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.251257' WHERE "spree_products"."id" = 1060500834 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500834], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.252541' WHERE "spree_products"."id" = 1060500834  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590201 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.254476' WHERE "spree_products"."id" = 1060500834  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500834  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["product_id", nil], ["property_id", 905835087], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500834, "updated_at" = '2012-10-20 09:33:20.260402' WHERE "spree_product_properties"."id" = 1073273366 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500834) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500834 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500834, 558398822) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451680 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451680], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500834, 558398824) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500834) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500834 AND "spree_option_types"."id" = 935339262 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500834) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["option_type_id", 935339262], ["position", 1], ["product_id", 1060500834], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339262) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339262], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.285379' WHERE "spree_products"."id" = 1060500834 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500834], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.286673' WHERE "spree_products"."id" = 1060500834  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590202, 979460246) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339262) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339262], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.290579' WHERE "spree_products"."id" = 1060500834 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500834], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.291820' WHERE "spree_products"."id" = 1060500834  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590203, 979460247) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339262) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339262], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.295809' WHERE "spree_products"."id" = 1060500834 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500834], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.296746' WHERE "spree_products"."id" = 1060500834  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590204, 979460248) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500834]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500834) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590202 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590203 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590204 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500834) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.307407' WHERE "spree_products"."id" = 1060500834  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590202 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.308475' WHERE "spree_products"."id" = 1060500834 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.309532' WHERE "spree_products"."id" = 1060500834  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590203 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.310440' WHERE "spree_products"."id" = 1060500834 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.311289' WHERE "spree_products"."id" = 1060500834  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590204 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.312090' WHERE "spree_products"."id" = 1060500834 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500834) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500834 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:20.313940' WHERE "spree_products"."id" = 1060500834 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500834 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.320579' WHERE "spree_products"."id" = 1060500835 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500835], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.321512' WHERE "spree_products"."id" = 1060500835  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590205 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.322561' WHERE "spree_products"."id" = 1060500835  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500835  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["product_id", nil], ["property_id", 905835088], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500835, "updated_at" = '2012-10-20 09:33:20.328112' WHERE "spree_product_properties"."id" = 1073273367 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500835) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500835 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500835, 558398822) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451681 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451681], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500835, 558398825) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398822 AND "spree_taxons"."taxonomy_id" = 854451679 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398822]] SQL (327.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398822], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451679], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398822]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398826]] SQL (1.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398826 THEN 558398822 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398822]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398826]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398826 AND "spree_taxons"."taxonomy_id" = 854451679 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398826]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398826], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451679], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398826]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398827]] SQL (33.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398827 THEN 558398826 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398826]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398827]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.8ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500835, 558398826)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500835, 558398827) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500835) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500835 AND "spree_option_types"."id" = 935339262 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500835) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["option_type_id", 935339262], ["position", 1], ["product_id", 1060500835], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.727185' WHERE "spree_products"."id" = 1060500835 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500835], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.728277' WHERE "spree_products"."id" = 1060500835  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590206, 979460246) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.730417' WHERE "spree_products"."id" = 1060500835 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500835], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.731386' WHERE "spree_products"."id" = 1060500835  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590207, 979460247) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.733800' WHERE "spree_products"."id" = 1060500835 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500835], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.734898' WHERE "spree_products"."id" = 1060500835  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590208, 979460248) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500835]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (1.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500835) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590206 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590207 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590208 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500835) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.759764' WHERE "spree_products"."id" = 1060500835  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590206 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.761102' WHERE "spree_products"."id" = 1060500835 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.762059' WHERE "spree_products"."id" = 1060500835  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590207 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.764126' WHERE "spree_products"."id" = 1060500835 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.765102' WHERE "spree_products"."id" = 1060500835  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590208 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.765945' WHERE "spree_products"."id" = 1060500835 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500835) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500835 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:20.768750' WHERE "spree_products"."id" = 1060500835 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500835 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.776733' WHERE "spree_products"."id" = 1060500836 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.779775' WHERE "spree_products"."id" = 1060500836  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590209 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.781262' WHERE "spree_products"."id" = 1060500836  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500836  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Created New Property # SQL (4.6ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["product_id", nil], ["property_id", 905835089], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500836, "updated_at" = '2012-10-20 09:33:20.845288' WHERE "spree_product_properties"."id" = 1073273368 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["product_id", nil], ["property_id", 905835088], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500836, "updated_at" = '2012-10-20 09:33:20.848130' WHERE "spree_product_properties"."id" = 1073273369 Created New ProductProperty # Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["product_id", nil], ["property_id", 905835090], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500836, "updated_at" = '2012-10-20 09:33:20.852946' WHERE "spree_product_properties"."id" = 1073273370 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500836) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451682 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451682], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500836 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500836, 558398828) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398822 AND "spree_taxons"."taxonomy_id" = 854451679 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.6ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500836, 558398823)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500836, 558398822) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500836) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500836 AND "spree_option_types"."id" = 935339262 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500836) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["option_type_id", 935339262], ["position", 1], ["product_id", 1060500836], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.879880' WHERE "spree_products"."id" = 1060500836 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.881443' WHERE "spree_products"."id" = 1060500836  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590210, 979460246) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.885574' WHERE "spree_products"."id" = 1060500836 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.886583' WHERE "spree_products"."id" = 1060500836  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590211, 979460247) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339262 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.888936' WHERE "spree_products"."id" = 1060500836 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.890410' WHERE "spree_products"."id" = 1060500836  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590212, 979460248) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500836]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500836 AND "spree_option_types"."id" = 935339263 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500836) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["option_type_id", 935339263], ["position", 2], ["product_id", 1060500836], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339263 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339263) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339263], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.903440' WHERE "spree_products"."id" = 1060500836 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.904590' WHERE "spree_products"."id" = 1060500836  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590213, 979460249) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339263 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339263) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00], ["name", "colour"], ["option_type_id", 935339263], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:20 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.910756' WHERE "spree_products"."id" = 1060500836 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500836], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.911855' WHERE "spree_products"."id" = 1060500836  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590214, 979460250) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500836]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500836) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590210 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590211 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590212 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590213 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (1.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590214 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500836) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.927098' WHERE "spree_products"."id" = 1060500836  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590210 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.928436' WHERE "spree_products"."id" = 1060500836 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.929526' WHERE "spree_products"."id" = 1060500836  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590211 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.930607' WHERE "spree_products"."id" = 1060500836 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.934467' WHERE "spree_products"."id" = 1060500836  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590212 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.935533' WHERE "spree_products"."id" = 1060500836 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.936298' WHERE "spree_products"."id" = 1060500836  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590213 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.937160' WHERE "spree_products"."id" = 1060500836 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500836 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.938186' WHERE "spree_products"."id" = 1060500836  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590214 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:20.939144' WHERE "spree_products"."id" = 1060500836 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500836) LIMIT 1  (3.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500836 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:20.944210' WHERE "spree_products"."id" = 1060500836 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500836 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (27.3ms) commit transaction Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500834 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500834 Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500835 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500835 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398822 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451679 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398826 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398826 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398827 ORDER BY "lft" SQL (5.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (2.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) begin transaction SQL (0.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451683], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.5ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451683], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.5ms) UPDATE "spree_taxons" SET "parent_id" = 558398829, "updated_at" = '2012-10-20 09:33:21.044748' WHERE "spree_taxons"."id" = 558398830 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398829]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398830]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398830 THEN 558398829 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398829]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398830]]  (2.2ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398829 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.078946' WHERE "spree_products"."id" = 1060500837 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500837], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.080816' WHERE "spree_products"."id" = 1060500837  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590215 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.082384' WHERE "spree_products"."id" = 1060500837  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500837  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835091], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500837, "updated_at" = '2012-10-20 09:33:21.089625' WHERE "spree_product_properties"."id" = 1073273371 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (1.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500837 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500837, 558398829) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451684 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451684], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500837, 558398831) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500837 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500837) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339264], ["position", 1], ["product_id", 1060500837], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339264) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339264], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.160840' WHERE "spree_products"."id" = 1060500837 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500837], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.161950' WHERE "spree_products"."id" = 1060500837  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590216, 979460251) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500837]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500837 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339264) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339264], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (1.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.170322' WHERE "spree_products"."id" = 1060500837 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500837], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.172691' WHERE "spree_products"."id" = 1060500837  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590217, 979460252) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500837]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500837 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339264) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339264], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.180458' WHERE "spree_products"."id" = 1060500837 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500837], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.181265' WHERE "spree_products"."id" = 1060500837  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590218, 979460253) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500837]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590216 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590217 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590218 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.195660' WHERE "spree_products"."id" = 1060500837  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590216 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.196932' WHERE "spree_products"."id" = 1060500837 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.197735' WHERE "spree_products"."id" = 1060500837  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590217 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.198393' WHERE "spree_products"."id" = 1060500837 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.199427' WHERE "spree_products"."id" = 1060500837  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590218 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.200199' WHERE "spree_products"."id" = 1060500837 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500837) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500837 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:21.202060' WHERE "spree_products"."id" = 1060500837 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500837 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.208310' WHERE "spree_products"."id" = 1060500838 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500838], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.209575' WHERE "spree_products"."id" = 1060500838  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590219 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.210609' WHERE "spree_products"."id" = 1060500838  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500838  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835092], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500838, "updated_at" = '2012-10-20 09:33:21.215391' WHERE "spree_product_properties"."id" = 1073273372 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500838 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500838, 558398829) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451685 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451685], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500838, 558398832) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398829 AND "spree_taxons"."taxonomy_id" = 854451683 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398829]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398829], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451683], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398829]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398833]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398833 THEN 558398829 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398829]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398833]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398833 AND "spree_taxons"."taxonomy_id" = 854451683 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398833]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398833], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451683], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398833]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398834]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398834 THEN 558398833 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398833]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398834]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500838, 558398833)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500838, 558398834) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500838 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500838) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339264], ["position", 1], ["product_id", 1060500838], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.248951' WHERE "spree_products"."id" = 1060500838 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500838], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.250244' WHERE "spree_products"."id" = 1060500838  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590220, 979460251) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500838]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500838 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.256349' WHERE "spree_products"."id" = 1060500838 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500838], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.257384' WHERE "spree_products"."id" = 1060500838  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590221, 979460252) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500838]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500838 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.262845' WHERE "spree_products"."id" = 1060500838 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500838], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.263952' WHERE "spree_products"."id" = 1060500838  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590222, 979460253) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500838]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590220 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590221 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590222 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.279200' WHERE "spree_products"."id" = 1060500838  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590220 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.280294' WHERE "spree_products"."id" = 1060500838 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.281212' WHERE "spree_products"."id" = 1060500838  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590221 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.281941' WHERE "spree_products"."id" = 1060500838 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.282624' WHERE "spree_products"."id" = 1060500838  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590222 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.283823' WHERE "spree_products"."id" = 1060500838 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500838) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500838 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:21.286095' WHERE "spree_products"."id" = 1060500838 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500838 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (1.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.293329' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.294124' WHERE "spree_products"."id" = 1060500839  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590223 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.295407' WHERE "spree_products"."id" = 1060500839  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500839  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835093], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500839, "updated_at" = '2012-10-20 09:33:21.300415' WHERE "spree_product_properties"."id" = 1073273373 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835092], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500839, "updated_at" = '2012-10-20 09:33:21.302952' WHERE "spree_product_properties"."id" = 1073273374 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835094], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500839, "updated_at" = '2012-10-20 09:33:21.306376' WHERE "spree_product_properties"."id" = 1073273375 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451686 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451686], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500839 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500839, 558398835) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398829 AND "spree_taxons"."taxonomy_id" = 854451683 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500839, 558398830)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500839, 558398829) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500839 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500839) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339264], ["position", 1], ["product_id", 1060500839], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.323776' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.324767' WHERE "spree_products"."id" = 1060500839  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590224, 979460251) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500839]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500839 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.331348' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.332353' WHERE "spree_products"."id" = 1060500839  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590225, 979460252) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500839]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500839 AND "spree_option_types"."id" = 935339264 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339264 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.338048' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.339125' WHERE "spree_products"."id" = 1060500839  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590226, 979460253) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500839]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500839 AND "spree_option_types"."id" = 935339265 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500839) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339265], ["position", 2], ["product_id", 1060500839], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339265 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339265) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339265], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.351144' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.351953' WHERE "spree_products"."id" = 1060500839  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590227, 979460254) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500839]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500839 AND "spree_option_types"."id" = 935339265 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339265 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339265) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "colour"], ["option_type_id", 935339265], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.359220' WHERE "spree_products"."id" = 1060500839 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500839], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.360395' WHERE "spree_products"."id" = 1060500839  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590228, 979460255) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500839]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590224 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590225 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590226 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590227 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590228 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.387182' WHERE "spree_products"."id" = 1060500839  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590224 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.388180' WHERE "spree_products"."id" = 1060500839 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.389301' WHERE "spree_products"."id" = 1060500839  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590225 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.389907' WHERE "spree_products"."id" = 1060500839 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.391069' WHERE "spree_products"."id" = 1060500839  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590226 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.391846' WHERE "spree_products"."id" = 1060500839 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.392692' WHERE "spree_products"."id" = 1060500839  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590227 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.393842' WHERE "spree_products"."id" = 1060500839 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500839 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.394865' WHERE "spree_products"."id" = 1060500839  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590228 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.395672' WHERE "spree_products"."id" = 1060500839 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500839) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500839 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:21.397725' WHERE "spree_products"."id" = 1060500839 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500839 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (6.4ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.2ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500837 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500837 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500838 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500838 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398829 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451683 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398833 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398833 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398834 ORDER BY "lft" SQL (3.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (18.4ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451687], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451687], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (2.2ms) commit transaction  (0.0ms) begin transaction  (0.3ms) UPDATE "spree_taxons" SET "parent_id" = 558398836, "updated_at" = '2012-10-20 09:33:21.501880' WHERE "spree_taxons"."id" = 558398837 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398836]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398837]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398837 THEN 558398836 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398836]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398837]]  (167.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398836 ORDER BY "lft"  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.765028' WHERE "spree_products"."id" = 1060500840 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500840], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.766423' WHERE "spree_products"."id" = 1060500840  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590229 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.767958' WHERE "spree_products"."id" = 1060500840  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500840  (1.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835095], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500840, "updated_at" = '2012-10-20 09:33:21.775157' WHERE "spree_product_properties"."id" = 1073273376 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500840 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500840, 558398836) Spree::Product Exists (1.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451688 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451688], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500840, 558398838) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500840 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500840) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339266], ["position", 1], ["product_id", 1060500840], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339266) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339266], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.807105' WHERE "spree_products"."id" = 1060500840 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500840], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.808604' WHERE "spree_products"."id" = 1060500840  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590230, 979460256) Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500840]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500840 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339266) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339266], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.818239' WHERE "spree_products"."id" = 1060500840 SQL (1.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500840], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.820429' WHERE "spree_products"."id" = 1060500840  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590231, 979460257) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500840]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1 Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500840 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339266) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339266], ["position", 3], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.828335' WHERE "spree_products"."id" = 1060500840 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500840], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.829757' WHERE "spree_products"."id" = 1060500840  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590232, 979460258) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500840]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590230 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590231 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590232 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.844688' WHERE "spree_products"."id" = 1060500840  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590230 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.845539' WHERE "spree_products"."id" = 1060500840 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.846653' WHERE "spree_products"."id" = 1060500840  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590231 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.848320' WHERE "spree_products"."id" = 1060500840 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.849403' WHERE "spree_products"."id" = 1060500840  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590232 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.850203' WHERE "spree_products"."id" = 1060500840 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500840) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500840 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-20 09:33:21.852620' WHERE "spree_products"."id" = 1060500840 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.859114' WHERE "spree_products"."id" = 1060500841 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500841], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.860290' WHERE "spree_products"."id" = 1060500841  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590233 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.861488' WHERE "spree_products"."id" = 1060500841  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500841  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835096], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500841, "updated_at" = '2012-10-20 09:33:21.866702' WHERE "spree_product_properties"."id" = 1073273377 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500841 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500841, 558398836) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451689 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451689], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500841, 558398839) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398836 AND "spree_taxons"."taxonomy_id" = 854451687 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398836]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398836], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451687], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398836]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398840]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398840 THEN 558398836 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398836]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398840]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398840 AND "spree_taxons"."taxonomy_id" = 854451687 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398840]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398840], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451687], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398840]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398841]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398841 THEN 558398840 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398840]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398841]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500841, 558398840)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500841, 558398841) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500841 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500841) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339266], ["position", 1], ["product_id", 1060500841], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.902724' WHERE "spree_products"."id" = 1060500841 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500841], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.903741' WHERE "spree_products"."id" = 1060500841  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590234, 979460256) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500841]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500841 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.909542' WHERE "spree_products"."id" = 1060500841 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500841], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.912960' WHERE "spree_products"."id" = 1060500841  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590235, 979460257) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500841]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500841 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.918849' WHERE "spree_products"."id" = 1060500841 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500841], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.919939' WHERE "spree_products"."id" = 1060500841  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590236, 979460258) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500841]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590234 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590235 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590236 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.935798' WHERE "spree_products"."id" = 1060500841  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590234 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.936917' WHERE "spree_products"."id" = 1060500841 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.937941' WHERE "spree_products"."id" = 1060500841  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590235 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.938867' WHERE "spree_products"."id" = 1060500841 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.940353' WHERE "spree_products"."id" = 1060500841  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590236 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.941201' WHERE "spree_products"."id" = 1060500841 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500841) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500841 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-20 09:33:21.943960' WHERE "spree_products"."id" = 1060500841 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.950011' WHERE "spree_products"."id" = 1060500842 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.950960' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590237 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.952184' WHERE "spree_products"."id" = 1060500842  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500842  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835097], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500842, "updated_at" = '2012-10-20 09:33:21.956670' WHERE "spree_product_properties"."id" = 1073273378 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835096], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500842, "updated_at" = '2012-10-20 09:33:21.959276' WHERE "spree_product_properties"."id" = 1073273379 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["product_id", nil], ["property_id", 905835098], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500842, "updated_at" = '2012-10-20 09:33:21.962316' WHERE "spree_product_properties"."id" = 1073273380 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451690 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451690], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500842 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500842, 558398842) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398836 AND "spree_taxons"."taxonomy_id" = 854451687 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500842, 558398837)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500842, 558398836) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500842 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500842) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["option_type_id", 935339266], ["position", 1], ["product_id", 1060500842], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.979251' WHERE "spree_products"."id" = 1060500842 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.980309' WHERE "spree_products"."id" = 1060500842  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590238, 979460256) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500842]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500842 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.986388' WHERE "spree_products"."id" = 1060500842 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.987597' WHERE "spree_products"."id" = 1060500842  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590239, 979460257) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500842]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500842 AND "spree_option_types"."id" = 935339266 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339266 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.994533' WHERE "spree_products"."id" = 1060500842 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:21.995484' WHERE "spree_products"."id" = 1060500842  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590240, 979460258) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500842]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sat, 20 Oct 2012 09:33:21 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500842 AND "spree_option_types"."id" = 935339267 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500842) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["option_type_id", 935339267], ["position", 2], ["product_id", 1060500842], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339267 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339267) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339267], ["position", 1], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.006044' WHERE "spree_products"."id" = 1060500842 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.007096' WHERE "spree_products"."id" = 1060500842  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590241, 979460259) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500842]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500842 AND "spree_option_types"."id" = 935339267 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339267 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339267) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "colour"], ["option_type_id", 935339267], ["position", 2], ["presentation", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.015057' WHERE "spree_products"."id" = 1060500842 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500842], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.016095' WHERE "spree_products"."id" = 1060500842  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590242, 979460260) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500842]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590238 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590239 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590240 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590241 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590242 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.029318' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590238 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.030264' WHERE "spree_products"."id" = 1060500842 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.031449' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590239 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.032347' WHERE "spree_products"."id" = 1060500842 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.033184' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590240 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.033952' WHERE "spree_products"."id" = 1060500842 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.035076' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590241 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.035887' WHERE "spree_products"."id" = 1060500842 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500842 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.036586' WHERE "spree_products"."id" = 1060500842  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590242 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.037480' WHERE "spree_products"."id" = 1060500842 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500842) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500842 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-20 09:33:22.040074' WHERE "spree_products"."id" = 1060500842  (6.3ms) commit transaction Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500840 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500840 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500841 LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500841 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398836 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451687 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398840 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398840 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398841 ORDER BY "lft" SQL (2.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.9ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (2.7ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: # SQL (2.7ms) DELETE FROM "spree_taxonomies" SQL (2.3ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500843 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.157171' WHERE "spree_products"."id" = 1060500843 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500843], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.158454' WHERE "spree_products"."id" = 1060500843  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590243 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.159831' WHERE "spree_products"."id" = 1060500843  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500843 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500843 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500843  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500843 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398843 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398843]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398843], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398843]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398844]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398844 THEN 558398843 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398843]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398844]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500843 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500843, 558398844)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500843, 558398843) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500843) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451692 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451692], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500843, 558398845) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500843) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590243 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500843) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-20 09:33:22.185279' WHERE "spree_products"."id" = 1060500843  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590243 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.187210' WHERE "spree_products"."id" = 1060500843 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500843 Row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "Paintings>Landscape", "WaterColour", nil, 2] succesfully SAVED : ID 1060500843 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500844 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.193349' WHERE "spree_products"."id" = 1060500844 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500844], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.194664' WHERE "spree_products"."id" = 1060500844  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590244 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.195726' WHERE "spree_products"."id" = 1060500844  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500844 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500844 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500844  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500844 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500844 Product assigned to Taxons : ["Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500844, 558398843) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500844) LIMIT 1 Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451693 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451693], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500844, 558398846) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500844) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398843 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398843]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398843], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398843]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398847 THEN 558398843 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398843]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398847 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398847], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398847]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398848]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398848 THEN 558398847 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398848]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500844, 558398847)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500844, 558398848) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500844) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590244 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500844) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-20 09:33:22.222270' WHERE "spree_products"."id" = 1060500844  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590244 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.223637' WHERE "spree_products"."id" = 1060500844 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500844 Row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", 100, 30, "Paintings", "Oils", "Paintings>Nature>Landscape", 5] succesfully SAVED : ID 1060500844 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500845 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.230293' WHERE "spree_products"."id" = 1060500845 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500845], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.231310' WHERE "spree_products"."id" = 1060500845  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590245 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.232460' WHERE "spree_products"."id" = 1060500845  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500845 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500845 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500845  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500845 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451694], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398849 AND "spree_taxons"."taxonomy_id" = 854451694 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398849]] SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398849], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451694], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398849]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398850]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398850 THEN 558398849 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398849]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398850]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500845 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500845, 558398850)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500845, 558398849) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500845) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Landscape"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451695 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451695], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500845, 558398851) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500845) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590245 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500845) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-20 09:33:22.256728' WHERE "spree_products"."id" = 1060500845  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590245 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.258268' WHERE "spree_products"."id" = 1060500845 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500845 Row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "Drawings>Landscape", "Landscape", nil, 7] succesfully SAVED : ID 1060500845 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500846 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.264964' WHERE "spree_products"."id" = 1060500846 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500846], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.266226' WHERE "spree_products"."id" = 1060500846  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590246 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.267200' WHERE "spree_products"."id" = 1060500846  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500846 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500846 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500846  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500846 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398849 AND "spree_taxons"."taxonomy_id" = 854451694 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500846 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398850)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398849) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500846) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398843 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398847 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398847], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398847]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398852]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398852 THEN 558398847 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.5ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398847]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398852]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398852 AND "spree_taxons"."taxonomy_id" = 854451691 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398852]] SQL (1.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398852], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451691], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398852]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398853]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398853 THEN 558398852 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398852]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398853]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398847)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398852)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398853)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500846, 558398843) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500846) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590246 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500846) LIMIT 1  (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-20 09:33:22.331533' WHERE "spree_products"."id" = 1060500846  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590246 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.333131' WHERE "spree_products"."id" = 1060500846 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500846 Row ["test_ct_004", "Demo four", "blah", "2012-07-01", 0.34, 0.01, "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", 3] succesfully SAVED : ID 1060500846 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500847 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.339375' WHERE "spree_products"."id" = 1060500847 SQL (0.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500847], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.340898' WHERE "spree_products"."id" = 1060500847  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590247 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.341906' WHERE "spree_products"."id" = 1060500847  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500847 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500847 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500847  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500847 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398849 AND "spree_taxons"."taxonomy_id" = 854451694 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398850 AND "spree_taxons"."taxonomy_id" = 854451694 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398850]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398850], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451694], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398850]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398854]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398854 THEN 558398850 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398850]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398854]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500847 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500847, 558398850)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500847, 558398854)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500847, 558398849) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500847) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451693 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500847, 558398846) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500847) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590247 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500847) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-20 09:33:22.359965' WHERE "spree_products"."id" = 1060500847  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590247 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.361635' WHERE "spree_products"."id" = 1060500847 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500847 Row ["test_ct_005", "Demo five", "blah", "2012-07-01", 3.34, 3.01, "Drawings>Landscape>Bristol", "Oils", nil, 3] succesfully SAVED : ID 1060500847 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451692 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451693 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451695 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.2ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451691 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398843 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398843) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398847 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398847) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398847) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398843 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398847 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398852 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398853 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398852) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451694 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398850 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398850 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398854 ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398854) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451693 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451693 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398846 ORDER BY "lft" Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451695 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451695 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398851 ORDER BY "lft" SQL (2.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.3ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.5ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.6ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_taxons"  (0.0ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500848 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.450633' WHERE "spree_products"."id" = 1060500848 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500848], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.451938' WHERE "spree_products"."id" = 1060500848  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590248 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.452966' WHERE "spree_products"."id" = 1060500848  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500848 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500848 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500848  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500848 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Paintings"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398855 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398855]] SQL (0.9ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398855], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398855]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398856]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398856 THEN 558398855 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398855]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398856]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500848 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500848, 558398856)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500848, 558398855) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500848) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451697 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451697], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500848, 558398857) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500848) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590248 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "Paintings>Landscape", "WaterColour", nil, "2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500848) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-20 09:33:22.478165' WHERE "spree_products"."id" = 1060500848  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590248 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.479629' WHERE "spree_products"."id" = 1060500848 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500848 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500849 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.486723' WHERE "spree_products"."id" = 1060500849 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500849], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.487532' WHERE "spree_products"."id" = 1060500849  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590249 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.489633' WHERE "spree_products"."id" = 1060500849  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500849 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500849 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500849  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500849 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500849 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500849, 558398855) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500849) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Oils"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451698 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451698], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500849, 558398858) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500849) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398855 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398855]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398855], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398855]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398859 THEN 558398855 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398855]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398859 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398859], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398859]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398860]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398860 THEN 558398859 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398860]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500849, 558398859)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500849, 558398860) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500849) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590249 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", "100.00", "30.00", "Paintings", "Oils", "Paintings>Nature>Landscape", "5"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500849) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-20 09:33:22.518187' WHERE "spree_products"."id" = 1060500849  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590249 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.519802' WHERE "spree_products"."id" = 1060500849 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500849 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500850 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.526119' WHERE "spree_products"."id" = 1060500850 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500850], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.526963' WHERE "spree_products"."id" = 1060500850  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590250 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.527915' WHERE "spree_products"."id" = 1060500850  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500850 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500850 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500850  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500850 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Drawings"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451699], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398861 AND "spree_taxons"."taxonomy_id" = 854451699 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398861]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398861], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451699], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398861]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398862]] SQL (1.8ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398862 THEN 558398861 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398861]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398862]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500850 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500850, 558398862)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500850, 558398861) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500850) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["name", "Landscape"], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451700 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451700], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500850, 558398863) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500850) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590250 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "Drawings>Landscape", "Landscape", nil, "7"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500850) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-20 09:33:22.555439' WHERE "spree_products"."id" = 1060500850  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590250 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.556799' WHERE "spree_products"."id" = 1060500850 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500850 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500851 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.563295' WHERE "spree_products"."id" = 1060500851 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500851], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.564228' WHERE "spree_products"."id" = 1060500851  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590251 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.567554' WHERE "spree_products"."id" = 1060500851  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500851 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500851 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500851  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500851 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398861 AND "spree_taxons"."taxonomy_id" = 854451699 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500851 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398862)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398861) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500851) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398855 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398859 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398859], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398859]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398864]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398864 THEN 558398859 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398859]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398864]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398864 AND "spree_taxons"."taxonomy_id" = 854451696 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398864]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398864], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451696], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398864]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398865]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398865 THEN 558398864 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398864]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398865]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398859)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398864)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398865)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500851, 558398855) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500851) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590251 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_004", "Demo four", "blah", "2012-07-01", "0.34", "0.01", "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", "3"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500851) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-20 09:33:22.594414' WHERE "spree_products"."id" = 1060500851  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590251 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.595968' WHERE "spree_products"."id" = 1060500851 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500851 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500852 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.601720' WHERE "spree_products"."id" = 1060500852 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500852], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.602715' WHERE "spree_products"."id" = 1060500852  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590252 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.603942' WHERE "spree_products"."id" = 1060500852  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500852 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500852 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500852  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500852 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398861 AND "spree_taxons"."taxonomy_id" = 854451699 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398862 AND "spree_taxons"."taxonomy_id" = 854451699 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398862]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398862], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451699], ["updated_at", Sat, 20 Oct 2012 09:33:22 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398862]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398866]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398866 THEN 558398862 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398862]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398866]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500852 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500852, 558398862)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500852, 558398866)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500852, 558398861) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500852) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451698 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500852, 558398858) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500852) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590252 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_005", "Demo five", "blah", "2012-07-01", "3.34", "3.01", "Drawings>Landscape>Bristol", "Oils", nil, "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500852) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-20 09:33:22.621753' WHERE "spree_products"."id" = 1060500852  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590252 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-20 09:33:22.623369' WHERE "spree_products"."id" = 1060500852 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500852  (7.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451697 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451698 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451700 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451696 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398855 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398855) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398859 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398859) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398859) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (4.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398855 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398859 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398864 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398865 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398864) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451699 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398862 ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398862 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398866 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398866) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451698 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451698 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398858 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451700 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451700 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398863 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (20.6ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (4.5ms) DELETE FROM "spree_properties" SQL (2.5ms) DELETE FROM "spree_product_properties" SQL (2.4ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (2.9ms) DELETE FROM "spree_zones" SQL (2.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (4.0ms) DELETE FROM "spree_product_properties" SQL (4.6ms) DELETE FROM "spree_variants" SQL (3.3ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones" SQL (2.6ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.3ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (3.4ms) DELETE FROM "spree_zones" SQL (2.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (5.7ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (2.2ms) DELETE FROM "spree_zones" SQL (2.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (4.0ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (17.4ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.3ms) begin transaction  (0.1ms) commit transaction SQL (2.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.9ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.1ms) DELETE FROM "spree_properties" SQL (4.2ms) DELETE FROM "spree_product_properties" SQL (188.2ms) DELETE FROM "spree_variants" SQL (2.9ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (4.9ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (2.4ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (11.7ms) DELETE FROM "spree_taxonomies" SQL (4.1ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction Booted Spree using version 1.1.3 SQL (154.4ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (2.5ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (2.4ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (38.6ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451701 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451701], ["updated_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00]]  (13.1ms) commit transaction  (0.2ms) begin transaction  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451701], ["updated_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00]]  (101.6ms) commit transaction  (0.2ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451701], ["updated_at", Sun, 21 Oct 2012 11:07:31 UTC +00:00]]  (4.1ms) commit transaction ExcelGenerator creating template with associations for class Spree::Taxonomy ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxonomy_export_spec.xls ExcelGenerator creating template with associations for class Spree::Taxon ExcelGenerator saving generated template /home/stattert/SoftwareDev/git/datashift_spree/spec/fixtures/results/taxon_export_spec.xls SQL (72.7ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451702 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451702], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (3.6ms) commit transaction  (0.4ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451702], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451702], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (14.4ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product SQL (3.3ms) DELETE FROM "spree_products" SQL (0.7ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451703 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451703], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451703], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (2.2ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451703], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00]]  (2.1ms) commit transaction ExcelGenerator creating template with associations for class Spree::Product Booted Spree using version 1.1.3 SQL (5.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (3.4ms) DELETE FROM "spree_zones" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 43 Row ["ROW", "Rest of World", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 43 Current value to assign : UK Current value to assign : United Kingdom Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 44 Row ["UK", "United Kingdom", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 44 Current value to assign : EUR Current value to assign : Europe Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 45 Row ["EUR", "Europe", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 45 Current value to assign : NA Current value to assign : North America Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 46 Row ["NA", "North America", nil, nil, nil, nil, nil, nil, nil, nil] succesfully SAVED : ID 46 Current value to assign : Current value to assign :  (4.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: # SQL (2.2ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction Current value to assign : ROW Current value to assign : Rest of World Saving csv row ["ROW", "Rest of World"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'ROW' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "Rest of World"], ["name", "ROW"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 47 Current value to assign : UK Current value to assign : United Kingdom Saving csv row ["UK", "United Kingdom"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'UK' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "United Kingdom"], ["name", "UK"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 48 Current value to assign : EUR Current value to assign : Europe Saving csv row ["EUR", "Europe"] to table object : # Spree::Zone Exists (0.2ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'EUR' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "Europe"], ["name", "EUR"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 49 Current value to assign : NA Current value to assign : North America Saving csv row ["NA", "North America"] to table object : # Spree::Zone Exists (0.1ms) SELECT 1 AS one FROM "spree_zones" WHERE "spree_zones"."name" = 'NA' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_zones" ("created_at", "default_tax", "description", "name", "updated_at", "zone_members_count") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["default_tax", false], ["description", "North America"], ["name", "NA"], ["updated_at", Sun, 21 Oct 2012 11:07:32 UTC +00:00], ["zone_members_count", 0]] Spree::ZoneMember Load (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = 50  (6.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_zones"  SQL (2.5ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (2.2ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.6ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.3ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (5.3ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (5.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (2.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500853 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.055647' WHERE "spree_products"."id" = 1060500853 SQL (0.7ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500853], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.058093' WHERE "spree_products"."id" = 1060500853  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590253 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.060943' WHERE "spree_products"."id" = 1060500853  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500853 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500853 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500853  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500853 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (1.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590253 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500853) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (4.0ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500853 AND "spree_option_types"."id" = 935339268 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500853) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339268], ["position", 1], ["product_id", 1060500853], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500853) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-21 11:07:33.176094' WHERE "spree_products"."id" = 1060500853  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590253 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.177929' WHERE "spree_products"."id" = 1060500853 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500853 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", 345.78, 320, 12, "mime_type"] succesfully SAVED : ID 1060500853 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500854 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.185194' WHERE "spree_products"."id" = 1060500854 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500854], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.186484' WHERE "spree_products"."id" = 1060500854  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590254 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.187616' WHERE "spree_products"."id" = 1060500854  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500854 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500854 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500854  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500854 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590254 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500854) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500854 AND "spree_option_types"."id" = 935339268 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500854) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339268], ["position", 1], ["product_id", 1060500854], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500854) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-21 11:07:33.198334' WHERE "spree_products"."id" = 1060500854  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590254 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.199565' WHERE "spree_products"."id" = 1060500854 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500854 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, 5, "mime_type"] succesfully SAVED : ID 1060500854 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (35.7ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500855 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.257345' WHERE "spree_products"."id" = 1060500855 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500855], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.258945' WHERE "spree_products"."id" = 1060500855  (0.5ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590255 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.260788' WHERE "spree_products"."id" = 1060500855  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500855 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500855 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500855  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500855 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590255 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500855) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500855 AND "spree_option_types"."id" = 935339268 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500855) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339268], ["position", 1], ["product_id", 1060500855], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500855 AND "spree_option_types"."id" = 935339269 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500855) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339269], ["position", 2], ["product_id", 1060500855], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500855) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-21 11:07:33.276173' WHERE "spree_products"."id" = 1060500855  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013590255 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.278318' WHERE "spree_products"."id" = 1060500855 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500855 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", 50.34, 23.34, 23, "mime_type|print_type"] succesfully SAVED : ID 1060500855 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.2ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-21 11:07:33.293508')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-21 11:07:33.294267')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500853 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500853 ORDER BY spree_option_types.position  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500853 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500855 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (6.1ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (2.1ms) DELETE FROM "spree_product_properties" SQL (1.8ms) DELETE FROM "spree_variants" SQL (2.3ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction Current value to assign : SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 345.78 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500856 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.355318' WHERE "spree_products"."id" = 1060500856 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500856], ["sku", "SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.356573' WHERE "spree_products"."id" = 1060500856  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590256 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.358096' WHERE "spree_products"."id" = 1060500856  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500856 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500856 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500856  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500856 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590256 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500856) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500856 AND "spree_option_types"."id" = 935339270 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500856) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339270], ["position", 1], ["product_id", 1060500856], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Saving csv row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", "2011-02-14", "345.78", "320.00", "12", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500856) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 12, "updated_at" = '2012-10-21 11:07:33.370821' WHERE "spree_products"."id" = 1060500856  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590256 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.372223' WHERE "spree_products"."id" = 1060500856 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500856 Current value to assign : SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500857 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.379358' WHERE "spree_products"."id" = 1060500857 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500857], ["sku", "SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.380491' WHERE "spree_products"."id" = 1060500857  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590257 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.381966' WHERE "spree_products"."id" = 1060500857  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500857 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500857 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500857  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500857 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590257 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500857) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500857 AND "spree_option_types"."id" = 935339270 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500857) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339270], ["position", 1], ["product_id", 1060500857], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Saving csv row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "5", "mime_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500857) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-21 11:07:33.392862' WHERE "spree_products"."id" = 1060500857  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590257 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.394429' WHERE "spree_products"."id" = 1060500857 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500857 Current value to assign : SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 2112-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Fri, 01 Jul 2112 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500858 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.400665' WHERE "spree_products"."id" = 1060500858 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500858], ["sku", "SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.401790' WHERE "spree_products"."id" = 1060500858  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590258 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.402818' WHERE "spree_products"."id" = 1060500858  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500858 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500858 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500858  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500858 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590258 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500858) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500858 AND "spree_option_types"."id" = 935339270 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500858) ORDER BY position DESC LIMIT 1 SQL (33.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339270], ["position", 1], ["product_id", 1060500858], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500858 AND "spree_option_types"."id" = 935339271 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500858) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339271], ["position", 2], ["product_id", 1060500858], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Saving csv row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", "2112-07-01", "50.34", "23.34", "23", "mime_type|print_type"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500858) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 23, "updated_at" = '2012-10-21 11:07:33.456053' WHERE "spree_products"."id" = 1060500858  (0.5ms) UPDATE "spree_variants" SET "count_on_hand" = 23 WHERE "spree_variants"."id" = 1013590258 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.457821' WHERE "spree_products"."id" = 1060500858 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500858  (5.6ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".available_on <= '2012-10-21 11:07:33.465860')  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE ("spree_products".available_on <= '2012-10-21 11:07:33.466459')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500856 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500856 ORDER BY spree_option_types.position  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500856 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" ORDER BY "spree_products"."id" DESC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500858 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (2.3ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.1ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (2.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 21 Oct 2012 12:07:33 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500859 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.516671' WHERE "spree_products"."id" = 1060500859 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500859], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.518323' WHERE "spree_products"."id" = 1060500859  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590259 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.519445' WHERE "spree_products"."id" = 1060500859  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500859 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500859 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500859  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500859 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500859 AND "spree_option_types"."id" = 935339272 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500859) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339272], ["position", 1], ["product_id", 1060500859], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500859) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500859 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.0ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 21 Oct 2012 12:07:33 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500860 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.533461' WHERE "spree_products"."id" = 1060500860 SQL (0.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500860], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.535099' WHERE "spree_products"."id" = 1060500860  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590260 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.536341' WHERE "spree_products"."id" = 1060500860  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500860 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500860 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500860  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500860 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500860 AND "spree_option_types"."id" = 935339272 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500860) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339272], ["position", 1], ["product_id", 1060500860], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500860) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500860 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 21 Oct 2012 12:07:33 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500861 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.552928' WHERE "spree_products"."id" = 1060500861 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500861], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.553950' WHERE "spree_products"."id" = 1060500861  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590261 SQL (2.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.554927' WHERE "spree_products"."id" = 1060500861  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500861 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500861 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500861  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500861 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500861 AND "spree_option_types"."id" = 935339272 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500861) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339272], ["position", 1], ["product_id", 1060500861], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500861 AND "spree_option_types"."id" = 935339273 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500861) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339273], ["position", 2], ["product_id", 1060500861], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500861) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500861 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.5ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500859 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.2ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (4.0ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.3ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Read Datashift loading config: {"Spree::Product"=>{"datashift_defaults"=>{"available_on"=>"Time.now.to_s(:db)", "cost_price"=>1.0, "meta_description"=>"super duper meta desc.", "meta_keywords"=>"techno dubstep d&b"}}} Assigning defaults and over rides from config Loader Options : {:instance_methods=>true} Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : SPEC_SIMPLE_001 Current value to assign : Simple Product for AR Loader Current value to assign : blah blah Current value to assign : 345.78  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Product for AR Loader"], ["permalink", "simple-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500862 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.666876' WHERE "spree_products"."id" = 1060500862 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500862], ["sku", "SPEC_SIMPLE_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.668459' WHERE "spree_products"."id" = 1060500862  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590262 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.669970' WHERE "spree_products"."id" = 1060500862  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500862 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500862 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500862  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500862 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500862 AND "spree_option_types"."id" = 935339274 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500862) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339274], ["position", 1], ["product_id", 1060500862], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-product-for-ar-loader' AND "spree_products"."id" != 1060500862) LIMIT 1 Row ["SIMPLE_001", "Simple Product for AR Loader", "blah blah", 345.78, "mime_type"] succesfully SAVED : ID 1060500862 Current value to assign : SPEC_SIMPLE_002 Current value to assign : Simple Excel Load via Jruby Current value to assign : less blah Current value to assign : 100  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple Excel Load via Jruby"], ["permalink", "simple-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500863 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.685901' WHERE "spree_products"."id" = 1060500863 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500863], ["sku", "SPEC_SIMPLE_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.686860' WHERE "spree_products"."id" = 1060500863  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590263 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.687892' WHERE "spree_products"."id" = 1060500863  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500863 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500863 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500863  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500863 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500863 AND "spree_option_types"."id" = 935339274 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500863) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339274], ["position", 1], ["product_id", 1060500863], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-excel-load-via-jruby' AND "spree_products"."id" != 1060500863) LIMIT 1 Row ["SIMPLE_002", "Simple Excel Load via Jruby", "less blah", 100, "mime_type"] succesfully SAVED : ID 1060500863 Current value to assign : SPEC_SIMPLE_003 Current value to assign : Simple third row avail in future Current value to assign : more blah blah Current value to assign : 50.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'simple-third-row-avail-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'simple-third-row-avail-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", nil], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", "super duper meta desc."], ["meta_keywords", "techno dubstep d&b"], ["name", "Simple third row avail in future"], ["permalink", "simple-third-row-avail-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500864 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.700549' WHERE "spree_products"."id" = 1060500864 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500864], ["sku", "SPEC_SIMPLE_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.701467' WHERE "spree_products"."id" = 1060500864  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590264 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.702559' WHERE "spree_products"."id" = 1060500864  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500864 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500864 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500864  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500864 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500864 AND "spree_option_types"."id" = 935339274 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500864) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339274], ["position", 1], ["product_id", 1060500864], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500864 AND "spree_option_types"."id" = 935339275 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500864) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339275], ["position", 2], ["product_id", 1060500864], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'simple-third-row-avail-in-future' AND "spree_products"."id" != 1060500864) LIMIT 1 Row ["SIMPLE_003", "Simple third row avail in future", "more blah blah", 50.34, "mime_type|print_type"] succesfully SAVED : ID 1060500864 Current value to assign : SPEC_ Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500862 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.3ms) begin transaction SQL (0.6ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]]  (2.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.815783' WHERE "spree_products"."id" = 1060500865 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500865], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.817101' WHERE "spree_products"."id" = 1060500865  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590265 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.818242' WHERE "spree_products"."id" = 1060500865  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500865  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["product_id", nil], ["property_id", 905835099], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500865, "updated_at" = '2012-10-21 11:07:33.834326' WHERE "spree_product_properties"."id" = 1073273381 Created New ProductProperty # Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500865) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451704 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451704], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500865 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500865, 558398876) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451705 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451705], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500865, 558398877) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500865) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500865 AND "spree_option_types"."id" = 935339276 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500865) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339276], ["position", 1], ["product_id", 1060500865], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339276) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339276], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.876563' WHERE "spree_products"."id" = 1060500865 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500865], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.877691' WHERE "spree_products"."id" = 1060500865  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590266, 979460261) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339276) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339276], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.884365' WHERE "spree_products"."id" = 1060500865 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500865], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.885416' WHERE "spree_products"."id" = 1060500865  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590267, 979460262) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339276) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339276], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.888797' WHERE "spree_products"."id" = 1060500865 SQL (0.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500865], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.890836' WHERE "spree_products"."id" = 1060500865  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590268, 979460263) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500865]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500865) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590266 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590267 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590268 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500865) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.902798' WHERE "spree_products"."id" = 1060500865  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590266 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.904103' WHERE "spree_products"."id" = 1060500865 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.905151' WHERE "spree_products"."id" = 1060500865  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590267 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.906059' WHERE "spree_products"."id" = 1060500865 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500865 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.907475' WHERE "spree_products"."id" = 1060500865  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590268 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.908364' WHERE "spree_products"."id" = 1060500865 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500865) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500865 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:33.910438' WHERE "spree_products"."id" = 1060500865 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500865 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.916642' WHERE "spree_products"."id" = 1060500866 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500866], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.917676' WHERE "spree_products"."id" = 1060500866  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590269 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.918894' WHERE "spree_products"."id" = 1060500866  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500866  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["product_id", nil], ["property_id", 905835100], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500866, "updated_at" = '2012-10-21 11:07:33.924504' WHERE "spree_product_properties"."id" = 1073273382 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500866) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451704 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500866 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500866, 558398876) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451706 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451706], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500866, 558398878) Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451704 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398876 AND "spree_taxons"."taxonomy_id" = 854451704 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398876]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398876], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451704], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398876]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398879]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398879 THEN 558398876 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398876]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398879]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398879 AND "spree_taxons"."taxonomy_id" = 854451704 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398879]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398879], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451704], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398879]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398880]] SQL (0.2ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398880 THEN 558398879 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398879]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398880]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500866, 558398879)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500866, 558398880) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500866) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500866 AND "spree_option_types"."id" = 935339276 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500866) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["option_type_id", 935339276], ["position", 1], ["product_id", 1060500866], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.959546' WHERE "spree_products"."id" = 1060500866 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500866], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.960805' WHERE "spree_products"."id" = 1060500866  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590270, 979460261) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.962831' WHERE "spree_products"."id" = 1060500866 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500866], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.963753' WHERE "spree_products"."id" = 1060500866  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590271, 979460262) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.965826' WHERE "spree_products"."id" = 1060500866 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500866], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.966714' WHERE "spree_products"."id" = 1060500866  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590272, 979460263) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500866]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500866) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590270 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590271 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590272 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500866) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.978963' WHERE "spree_products"."id" = 1060500866  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590270 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.979864' WHERE "spree_products"."id" = 1060500866 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.981032' WHERE "spree_products"."id" = 1060500866  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590271 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.981844' WHERE "spree_products"."id" = 1060500866 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500866 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.982799' WHERE "spree_products"."id" = 1060500866  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590272 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.983593' WHERE "spree_products"."id" = 1060500866 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500866) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500866 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:33.985321' WHERE "spree_products"."id" = 1060500866 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500866 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:33 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.991576' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.992446' WHERE "spree_products"."id" = 1060500867  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590273 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:33.993514' WHERE "spree_products"."id" = 1060500867  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500867  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835101], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500867, "updated_at" = '2012-10-21 11:07:34.034843' WHERE "spree_product_properties"."id" = 1073273383 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835100], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500867, "updated_at" = '2012-10-21 11:07:34.036563' WHERE "spree_product_properties"."id" = 1073273384 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835102], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500867, "updated_at" = '2012-10-21 11:07:34.039485' WHERE "spree_product_properties"."id" = 1073273385 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500867) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451707 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451707], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500867 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500867, 558398881) Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451704 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398876 AND "spree_taxons"."taxonomy_id" = 854451704 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398876]] SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398876], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451704], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398876]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398882]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398882 THEN 558398876 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398876]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398882]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500867, 558398882)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500867, 558398876) Current value to assign : Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500867) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500867 AND "spree_option_types"."id" = 935339276 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500867) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339276], ["position", 1], ["product_id", 1060500867], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.076055' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.077106' WHERE "spree_products"."id" = 1060500867  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590274, 979460261) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.079449' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.080390' WHERE "spree_products"."id" = 1060500867  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590275, 979460262) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339276 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.082238' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.083197' WHERE "spree_products"."id" = 1060500867  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590276, 979460263) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500867]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500867 AND "spree_option_types"."id" = 935339277 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500867) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339277], ["position", 2], ["product_id", 1060500867], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339277 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339277) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339277], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.094396' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.096106' WHERE "spree_products"."id" = 1060500867  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590277, 979460264) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339277 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339277) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "colour"], ["option_type_id", 935339277], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.099868' WHERE "spree_products"."id" = 1060500867 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500867], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.100917' WHERE "spree_products"."id" = 1060500867  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590278, 979460265) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500867]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500867) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590274 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590275 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590276 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590277 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590278 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500867) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.114553' WHERE "spree_products"."id" = 1060500867  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590274 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.115587' WHERE "spree_products"."id" = 1060500867 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.116444' WHERE "spree_products"."id" = 1060500867  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590275 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.117211' WHERE "spree_products"."id" = 1060500867 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.118208' WHERE "spree_products"."id" = 1060500867  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590276 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.118955' WHERE "spree_products"."id" = 1060500867 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.120155' WHERE "spree_products"."id" = 1060500867  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590277 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.120938' WHERE "spree_products"."id" = 1060500867 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500867 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.121771' WHERE "spree_products"."id" = 1060500867  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590278 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.122443' WHERE "spree_products"."id" = 1060500867 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500867) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500867 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:34.124870' WHERE "spree_products"."id" = 1060500867 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500867 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (9.1ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500865 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500867 Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500867 SQL (6.0ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test PP 001"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (2.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_properties"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.265532' WHERE "spree_products"."id" = 1060500868 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500868], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.266779' WHERE "spree_products"."id" = 1060500868  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590279 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.268108' WHERE "spree_products"."id" = 1060500868  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500868  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835103], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500868, "updated_at" = '2012-10-21 11:07:34.273108' WHERE "spree_product_properties"."id" = 1073273386 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451708 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451708], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500868 Product assigned to Taxons : ["Paintings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500868, 558398883) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451709 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451709], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500868, 558398884) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500868 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500868) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339278], ["position", 1], ["product_id", 1060500868], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339278) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339278], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.301015' WHERE "spree_products"."id" = 1060500868 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500868], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.302100' WHERE "spree_products"."id" = 1060500868  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590280, 979460266) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500868]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500868 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339278) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339278], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.310540' WHERE "spree_products"."id" = 1060500868 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500868], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.311375' WHERE "spree_products"."id" = 1060500868  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590281, 979460267) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500868]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500868 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339278) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339278], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.319453' WHERE "spree_products"."id" = 1060500868 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500868], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.320698' WHERE "spree_products"."id" = 1060500868  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590282, 979460268) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500868]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590280 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590281 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590282 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.334444' WHERE "spree_products"."id" = 1060500868  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590280 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.335561' WHERE "spree_products"."id" = 1060500868 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.336514' WHERE "spree_products"."id" = 1060500868  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590281 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.337330' WHERE "spree_products"."id" = 1060500868 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500868 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.338096' WHERE "spree_products"."id" = 1060500868  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590282 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.339026' WHERE "spree_products"."id" = 1060500868 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500868) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500868 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:34.341215' WHERE "spree_products"."id" = 1060500868 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500868 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.347446' WHERE "spree_products"."id" = 1060500869 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500869], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.348335' WHERE "spree_products"."id" = 1060500869  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590283 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.349268' WHERE "spree_products"."id" = 1060500869  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500869  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835104], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500869, "updated_at" = '2012-10-21 11:07:34.358109' WHERE "spree_product_properties"."id" = 1073273387 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451708 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500869 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500869, 558398883) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451710 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451710], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500869, 558398885) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451708 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398883 AND "spree_taxons"."taxonomy_id" = 854451708 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398883]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398883], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451708], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398883]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398886]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398886 THEN 558398883 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398883]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398886]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398886 AND "spree_taxons"."taxonomy_id" = 854451708 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398886]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398886], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451708], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398886]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398887]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398887 THEN 558398886 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398886]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398887]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500869, 558398886)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500869, 558398887) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500869 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500869) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339278], ["position", 1], ["product_id", 1060500869], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.392784' WHERE "spree_products"."id" = 1060500869 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500869], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.394110' WHERE "spree_products"."id" = 1060500869  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590284, 979460266) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500869]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500869 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.399986' WHERE "spree_products"."id" = 1060500869 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500869], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.401110' WHERE "spree_products"."id" = 1060500869  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590285, 979460267) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500869]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500869 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.407198' WHERE "spree_products"."id" = 1060500869 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500869], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.408236' WHERE "spree_products"."id" = 1060500869  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590286, 979460268) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500869]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590284 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590285 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590286 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.422110' WHERE "spree_products"."id" = 1060500869  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590284 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.423363' WHERE "spree_products"."id" = 1060500869 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.424095' WHERE "spree_products"."id" = 1060500869  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590285 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.424857' WHERE "spree_products"."id" = 1060500869 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500869 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.426016' WHERE "spree_products"."id" = 1060500869  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590286 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.427110' WHERE "spree_products"."id" = 1060500869 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500869) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500869 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:34.429178' WHERE "spree_products"."id" = 1060500869 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500869 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.435571' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.436394' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590287 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.437482' WHERE "spree_products"."id" = 1060500870  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500870  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835105], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500870, "updated_at" = '2012-10-21 11:07:34.442428' WHERE "spree_product_properties"."id" = 1073273388 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835104], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", "Example free value"]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500870, "updated_at" = '2012-10-21 11:07:34.445096' WHERE "spree_product_properties"."id" = 1073273389 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["product_id", nil], ["property_id", 905835106], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500870, "updated_at" = '2012-10-21 11:07:34.448700' WHERE "spree_product_properties"."id" = 1073273390 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451711 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451711], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500870 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500870, 558398888) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451708 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398883 AND "spree_taxons"."taxonomy_id" = 854451708 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398883]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398883], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451708], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398883]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398889]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398889 THEN 558398883 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398883]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398889]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500870, 558398889)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500870, 558398883) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500870 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500870) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339278], ["position", 1], ["product_id", 1060500870], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.476540' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.477536' WHERE "spree_products"."id" = 1060500870  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590288, 979460266) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500870]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500870 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.483949' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.484894' WHERE "spree_products"."id" = 1060500870  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590289, 979460267) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500870]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500870 AND "spree_option_types"."id" = 935339278 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339278 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.490933' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.491647' WHERE "spree_products"."id" = 1060500870  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590290, 979460268) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500870]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500870 AND "spree_option_types"."id" = 935339279 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500870) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["option_type_id", 935339279], ["position", 2], ["product_id", 1060500870], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339279 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339279) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339279], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.502216' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.503252' WHERE "spree_products"."id" = 1060500870  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590291, 979460269) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500870]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500870 AND "spree_option_types"."id" = 935339279 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339279 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339279) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00], ["name", "colour"], ["option_type_id", 935339279], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:34 UTC +00:00]]  (1.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.551570' WHERE "spree_products"."id" = 1060500870 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500870], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.552683' WHERE "spree_products"."id" = 1060500870  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590292, 979460270) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500870]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (3.9ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590288 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590289 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590290 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590291 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590292 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.570405' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590288 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.571486' WHERE "spree_products"."id" = 1060500870 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.572463' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590289 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.573273' WHERE "spree_products"."id" = 1060500870 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.574112' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590290 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.574885' WHERE "spree_products"."id" = 1060500870 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.575993' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590291 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.577008' WHERE "spree_products"."id" = 1060500870 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500870 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.577931' WHERE "spree_products"."id" = 1060500870  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590292 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:34.578910' WHERE "spree_products"."id" = 1060500870 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500870) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500870 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:34.580798' WHERE "spree_products"."id" = 1060500870 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500870 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.3ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500868 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" INNER JOIN "spree_product_properties" ON "spree_properties"."id" = "spree_product_properties"."property_id" WHERE "spree_product_properties"."product_id" = 1060500870 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = 1060500870 SQL (112.7ms) DELETE FROM "spree_products" SQL (0.4ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.9ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (2.4ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (5.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (3.0ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (3.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (2.4ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (2.2ms) DELETE FROM "spree_taxonomies" SQL (1.9ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: # SQL (2.5ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Booted Spree using version 1.1.3 SQL (4.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (3.1ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (5.6ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.3ms) begin transaction  (0.2ms) commit transaction PRODUCT # MASTER: #  (0.2ms) begin transaction SQL (0.7ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451712 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451712], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (4.2ms) commit transaction  (0.5ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451712], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (2.7ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) SELECT COUNT(*) FROM "spree_variants" Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.052790' WHERE "spree_products"."id" = 1060500871 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500871], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.054726' WHERE "spree_products"."id" = 1060500871  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590293 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.056665' WHERE "spree_products"."id" = 1060500871  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500871  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835107], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500871, "updated_at" = '2012-10-21 11:07:35.068012' WHERE "spree_product_properties"."id" = 1073273391 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500871) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451712 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500871 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500871, 558398890) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451713 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451713], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500871, 558398892) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500871) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500871 AND "spree_option_types"."id" = 935339280 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500871) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339280], ["position", 1], ["product_id", 1060500871], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339280) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339280], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.093118' WHERE "spree_products"."id" = 1060500871 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500871], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.094587' WHERE "spree_products"."id" = 1060500871  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590294, 979460271) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339280) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339280], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.099189' WHERE "spree_products"."id" = 1060500871 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500871], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.100118' WHERE "spree_products"."id" = 1060500871  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590295, 979460272) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339280) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339280], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.104186' WHERE "spree_products"."id" = 1060500871 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500871], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.105026' WHERE "spree_products"."id" = 1060500871  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590296, 979460273) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500871]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500871) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590294 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590295 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590296 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500871) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.116421' WHERE "spree_products"."id" = 1060500871  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590294 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.117448' WHERE "spree_products"."id" = 1060500871 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.118451' WHERE "spree_products"."id" = 1060500871  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590295 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.119119' WHERE "spree_products"."id" = 1060500871 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500871 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.119938' WHERE "spree_products"."id" = 1060500871  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590296 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.120753' WHERE "spree_products"."id" = 1060500871 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500871) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:35.122635' WHERE "spree_products"."id" = 1060500871 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500871 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.128902' WHERE "spree_products"."id" = 1060500872 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500872], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.129787' WHERE "spree_products"."id" = 1060500872  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590297 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.130712' WHERE "spree_products"."id" = 1060500872  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500872  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835108], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500872, "updated_at" = '2012-10-21 11:07:35.135591' WHERE "spree_product_properties"."id" = 1073273392 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500872) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451712 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500872 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500872, 558398890) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451714 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451714], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500872, 558398893) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451712 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398890 AND "spree_taxons"."taxonomy_id" = 854451712 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398890]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398890], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451712], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398890]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398894]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398894 THEN 558398890 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398890]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398894]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398894 AND "spree_taxons"."taxonomy_id" = 854451712 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398894]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398894], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451712], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398894]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398895]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398895 THEN 558398894 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398894]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398895]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500872, 558398894)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500872, 558398895) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500872) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500872 AND "spree_option_types"."id" = 935339280 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500872) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339280], ["position", 1], ["product_id", 1060500872], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (5.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.168867' WHERE "spree_products"."id" = 1060500872 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500872], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.169821' WHERE "spree_products"."id" = 1060500872  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590298, 979460271) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.172119' WHERE "spree_products"."id" = 1060500872 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500872], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.173119' WHERE "spree_products"."id" = 1060500872  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590299, 979460272) Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.175395' WHERE "spree_products"."id" = 1060500872 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500872], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.176240' WHERE "spree_products"."id" = 1060500872  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590300, 979460273) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500872]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500872) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590298 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590299 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590300 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500872) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.188796' WHERE "spree_products"."id" = 1060500872  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590298 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.189676' WHERE "spree_products"."id" = 1060500872 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.190456' WHERE "spree_products"."id" = 1060500872  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590299 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.191120' WHERE "spree_products"."id" = 1060500872 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500872 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.191943' WHERE "spree_products"."id" = 1060500872  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590300 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.192975' WHERE "spree_products"."id" = 1060500872 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500872) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:35.194759' WHERE "spree_products"."id" = 1060500872 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500872 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (2.5ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.236995' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.237817' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590301 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.238989' WHERE "spree_products"."id" = 1060500873  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500873  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835109], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500873, "updated_at" = '2012-10-21 11:07:35.243978' WHERE "spree_product_properties"."id" = 1073273393 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835108], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500873, "updated_at" = '2012-10-21 11:07:35.246085' WHERE "spree_product_properties"."id" = 1073273394 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835110], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500873, "updated_at" = '2012-10-21 11:07:35.248772' WHERE "spree_product_properties"."id" = 1073273395 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500873) LIMIT 1 Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451715 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451715], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500873 Product assigned to Taxons : ["Drawings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500873, 558398896) Spree::Taxonomy Load (0.0ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451712 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398890 AND "spree_taxons"."taxonomy_id" = 854451712 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398890]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398890], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451712], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398890]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398897]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398897 THEN 558398890 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398890]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398897]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500873, 558398897)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500873, 558398890) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500873) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500873 AND "spree_option_types"."id" = 935339280 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500873) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339280], ["position", 1], ["product_id", 1060500873], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.351993' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.353250' WHERE "spree_products"."id" = 1060500873  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590302, 979460271) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.355296' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.356122' WHERE "spree_products"."id" = 1060500873  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590303, 979460272) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339280 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.358668' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.359567' WHERE "spree_products"."id" = 1060500873  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590304, 979460273) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500873]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500873 AND "spree_option_types"."id" = 935339281 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500873) ORDER BY position DESC LIMIT 1 SQL (10.7ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339281], ["position", 2], ["product_id", 1060500873], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339281 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339281) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339281], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.382685' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.383910' WHERE "spree_products"."id" = 1060500873  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590305, 979460274) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339281 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339281) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "colour"], ["option_type_id", 935339281], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.387826' WHERE "spree_products"."id" = 1060500873 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500873], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.388966' WHERE "spree_products"."id" = 1060500873  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590306, 979460275) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500873]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500873) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590302 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590303 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590304 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590305 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590306 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (1.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500873) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.403892' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590302 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.405029' WHERE "spree_products"."id" = 1060500873 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.405942' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590303 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.406661' WHERE "spree_products"."id" = 1060500873 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.407457' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590304 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.408656' WHERE "spree_products"."id" = 1060500873 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.409618' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590305 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.410424' WHERE "spree_products"."id" = 1060500873 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500873 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.411275' WHERE "spree_products"."id" = 1060500873  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590306 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.412009' WHERE "spree_products"."id" = 1060500873 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500873) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:35.414329' WHERE "spree_products"."id" = 1060500873 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500873 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (114.4ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500872 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500873 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500871 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500871 ORDER BY spree_option_types.position Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590294 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590295 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339280 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590296 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (4.6ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.6ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451716 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451716], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451716], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (2.3ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.743607' WHERE "spree_products"."id" = 1060500874 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500874], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.745125' WHERE "spree_products"."id" = 1060500874  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590307 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.746360' WHERE "spree_products"."id" = 1060500874  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500874  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835111], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500874, "updated_at" = '2012-10-21 11:07:35.751689' WHERE "spree_product_properties"."id" = 1073273396 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451716 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500874 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500874, 558398898) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451717 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451717], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500874, 558398900) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500874 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500874) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339282], ["position", 1], ["product_id", 1060500874], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339282) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339282], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.783407' WHERE "spree_products"."id" = 1060500874 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500874], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.784514' WHERE "spree_products"."id" = 1060500874  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590308, 979460276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500874]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500874 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339282) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339282], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.792208' WHERE "spree_products"."id" = 1060500874 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500874], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.793083' WHERE "spree_products"."id" = 1060500874  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590309, 979460277) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500874]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500874 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339282) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339282], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.800602' WHERE "spree_products"."id" = 1060500874 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500874], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.801642' WHERE "spree_products"."id" = 1060500874  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590310, 979460278) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500874]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590308 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590309 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590310 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.815681' WHERE "spree_products"."id" = 1060500874  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590308 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.816657' WHERE "spree_products"."id" = 1060500874 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.817549' WHERE "spree_products"."id" = 1060500874  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590309 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.818334' WHERE "spree_products"."id" = 1060500874 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500874 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.819248' WHERE "spree_products"."id" = 1060500874  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590310 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.820003' WHERE "spree_products"."id" = 1060500874 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500874) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:35.822065' WHERE "spree_products"."id" = 1060500874 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500874 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.828032' WHERE "spree_products"."id" = 1060500875 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500875], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.829103' WHERE "spree_products"."id" = 1060500875  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590311 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.830202' WHERE "spree_products"."id" = 1060500875  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500875  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835112], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500875, "updated_at" = '2012-10-21 11:07:35.835321' WHERE "spree_product_properties"."id" = 1073273397 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451716 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500875 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500875, 558398898) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451718 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451718], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500875, 558398901) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451716 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398898 AND "spree_taxons"."taxonomy_id" = 854451716 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398898]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398898], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451716], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398898]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398902]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398902 THEN 558398898 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398898]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398902]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398902 AND "spree_taxons"."taxonomy_id" = 854451716 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398902]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398902], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451716], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398902]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398903]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398903 THEN 558398902 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398902]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398903]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500875, 558398902)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500875, 558398903) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500875 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500875) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339282], ["position", 1], ["product_id", 1060500875], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.871226' WHERE "spree_products"."id" = 1060500875 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500875], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.875995' WHERE "spree_products"."id" = 1060500875  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590312, 979460276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500875]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500875 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.882561' WHERE "spree_products"."id" = 1060500875 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500875], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.883457' WHERE "spree_products"."id" = 1060500875  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590313, 979460277) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500875]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500875 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.891233' WHERE "spree_products"."id" = 1060500875 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500875], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.892286' WHERE "spree_products"."id" = 1060500875  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590314, 979460278) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500875]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590312 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590313 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590314 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.907943' WHERE "spree_products"."id" = 1060500875  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590312 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.908896' WHERE "spree_products"."id" = 1060500875 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.909853' WHERE "spree_products"."id" = 1060500875  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590313 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.910600' WHERE "spree_products"."id" = 1060500875 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500875 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.911545' WHERE "spree_products"."id" = 1060500875  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590314 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.912304' WHERE "spree_products"."id" = 1060500875 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500875) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:35.914245' WHERE "spree_products"."id" = 1060500875 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500875 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.920027' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.920970' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590315 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.922068' WHERE "spree_products"."id" = 1060500876  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500876  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835113], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500876, "updated_at" = '2012-10-21 11:07:35.927617' WHERE "spree_product_properties"."id" = 1073273398 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835112], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500876, "updated_at" = '2012-10-21 11:07:35.930858' WHERE "spree_product_properties"."id" = 1073273399 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["product_id", nil], ["property_id", 905835114], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500876, "updated_at" = '2012-10-21 11:07:35.934208' WHERE "spree_product_properties"."id" = 1073273400 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451719 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451719], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500876 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500876, 558398904) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451716 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398898 AND "spree_taxons"."taxonomy_id" = 854451716 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398898]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398898], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451716], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398898]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398905]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398905 THEN 558398898 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398898]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398905]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500876, 558398905)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500876, 558398898) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500876 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500876) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339282], ["position", 1], ["product_id", 1060500876], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.959099' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.960294' WHERE "spree_products"."id" = 1060500876  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590316, 979460276) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500876]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500876 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.966689' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.967723' WHERE "spree_products"."id" = 1060500876  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590317, 979460277) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500876]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500876 AND "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339282 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.985630' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.986834' WHERE "spree_products"."id" = 1060500876  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590318, 979460278) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500876]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500876 AND "spree_option_types"."id" = 935339283 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500876) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["option_type_id", 935339283], ["position", 2], ["product_id", 1060500876], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339283 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339283) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339283], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:35 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.997804' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:35.998986' WHERE "spree_products"."id" = 1060500876  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590319, 979460279) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500876]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500876 AND "spree_option_types"."id" = 935339283 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339283 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339283) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "colour"], ["option_type_id", 935339283], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.006841' WHERE "spree_products"."id" = 1060500876 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500876], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.008154' WHERE "spree_products"."id" = 1060500876  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590320, 979460280) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500876]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590316 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590317 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590318 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590319 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590320 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.021099' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590316 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.022076' WHERE "spree_products"."id" = 1060500876 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.023122' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590317 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.023991' WHERE "spree_products"."id" = 1060500876 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.024878' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590318 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.025893' WHERE "spree_products"."id" = 1060500876 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.026763' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590319 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.027505' WHERE "spree_products"."id" = 1060500876 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500876 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.028359' WHERE "spree_products"."id" = 1060500876  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590320 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.029115' WHERE "spree_products"."id" = 1060500876 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500876) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:36.031360' WHERE "spree_products"."id" = 1060500876 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500876 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (10.7ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500875 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500876 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500874 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500874 ORDER BY spree_option_types.position Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590308 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590309 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339282 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590310 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (3.0ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (2.6ms) DELETE FROM "spree_option_values" SQL (1.9ms) DELETE FROM "spree_properties" SQL (5.7ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451720 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451720], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (3.4ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451720], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants"  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.190574' WHERE "spree_products"."id" = 1060500877 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500877], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.191932' WHERE "spree_products"."id" = 1060500877  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590321 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.193062' WHERE "spree_products"."id" = 1060500877  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500877  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835115], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500877, "updated_at" = '2012-10-21 11:07:36.198606' WHERE "spree_product_properties"."id" = 1073273401 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451720 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500877 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500877, 558398906) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451721 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451721], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500877, 558398908) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500877 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500877) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339284], ["position", 1], ["product_id", 1060500877], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339284) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339284], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.221471' WHERE "spree_products"."id" = 1060500877 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500877], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.222471' WHERE "spree_products"."id" = 1060500877  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590322, 979460281) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500877]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500877 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339284) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339284], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.230395' WHERE "spree_products"."id" = 1060500877 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500877], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.231271' WHERE "spree_products"."id" = 1060500877  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590323, 979460282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500877]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500877 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339284) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339284], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.238203' WHERE "spree_products"."id" = 1060500877 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500877], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.239167' WHERE "spree_products"."id" = 1060500877  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590324, 979460283) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500877]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590322 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590323 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590324 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.253553' WHERE "spree_products"."id" = 1060500877  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590322 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.254534' WHERE "spree_products"."id" = 1060500877 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.255506' WHERE "spree_products"."id" = 1060500877  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590323 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.256290' WHERE "spree_products"."id" = 1060500877 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500877 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.257193' WHERE "spree_products"."id" = 1060500877  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590324 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.257944' WHERE "spree_products"."id" = 1060500877 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500877) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:36.259976' WHERE "spree_products"."id" = 1060500877 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.265756' WHERE "spree_products"."id" = 1060500878 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500878], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.266689' WHERE "spree_products"."id" = 1060500878  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590325 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.267726' WHERE "spree_products"."id" = 1060500878  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500878  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835116], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500878, "updated_at" = '2012-10-21 11:07:36.272776' WHERE "spree_product_properties"."id" = 1073273402 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451720 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500878 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500878, 558398906) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451722 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451722], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500878, 558398909) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451720 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398906 AND "spree_taxons"."taxonomy_id" = 854451720 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398906]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398906], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451720], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398906]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398910]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 2 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 2 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398910 THEN 558398906 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398906]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398910]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398910 AND "spree_taxons"."taxonomy_id" = 854451720 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398910]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398910], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451720], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398910]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398911]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 3 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 3 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398911 THEN 558398910 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398910]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398911]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500878, 558398910)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500878, 558398911) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500878 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500878) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339284], ["position", 1], ["product_id", 1060500878], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.307900' WHERE "spree_products"."id" = 1060500878 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500878], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.308999' WHERE "spree_products"."id" = 1060500878  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590326, 979460281) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500878]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500878 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.315597' WHERE "spree_products"."id" = 1060500878 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500878], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.316526' WHERE "spree_products"."id" = 1060500878  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590327, 979460282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500878]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500878 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.322338' WHERE "spree_products"."id" = 1060500878 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500878], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.323288' WHERE "spree_products"."id" = 1060500878  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590328, 979460283) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500878]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590326 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590327 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590328 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.336351' WHERE "spree_products"."id" = 1060500878  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590326 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.337163' WHERE "spree_products"."id" = 1060500878 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.338026' WHERE "spree_products"."id" = 1060500878  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590327 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.338813' WHERE "spree_products"."id" = 1060500878 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500878 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.339742' WHERE "spree_products"."id" = 1060500878  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590328 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.340503' WHERE "spree_products"."id" = 1060500878 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500878) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:36.342394' WHERE "spree_products"."id" = 1060500878 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.348754' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (2.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.349913' WHERE "spree_products"."id" = 1060500879  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590329 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.353540' WHERE "spree_products"."id" = 1060500879  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500879  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835117], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", nil]]  (0.0ms) UPDATE "spree_product_properties" SET "product_id" = 1060500879, "updated_at" = '2012-10-21 11:07:36.358753' WHERE "spree_product_properties"."id" = 1073273403 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835116], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500879, "updated_at" = '2012-10-21 11:07:36.361527' WHERE "spree_product_properties"."id" = 1073273404 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835118], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500879, "updated_at" = '2012-10-21 11:07:36.365009' WHERE "spree_product_properties"."id" = 1073273405 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451723 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451723], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500879 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500879, 558398912) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451720 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398906 AND "spree_taxons"."taxonomy_id" = 854451720 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398906]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398906], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451720], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398906]] Spree::Taxon Load (3.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398913]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 6 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 6 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398913 THEN 558398906 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398906]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398913]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500879, 558398913)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500879, 558398906) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500879 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500879) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339284], ["position", 1], ["product_id", 1060500879], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.392252' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.393991' WHERE "spree_products"."id" = 1060500879  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590330, 979460281) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500879]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500879 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.400573' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.401549' WHERE "spree_products"."id" = 1060500879  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590331, 979460282) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500879]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500879 AND "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339284 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.407318' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.408162' WHERE "spree_products"."id" = 1060500879  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590332, 979460283) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500879]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500879 AND "spree_option_types"."id" = 935339285 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500879) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339285], ["position", 2], ["product_id", 1060500879], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339285 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339285) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339285], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.418017' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.418932' WHERE "spree_products"."id" = 1060500879  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590333, 979460284) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500879]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500879 AND "spree_option_types"."id" = 935339285 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339285 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339285) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "colour"], ["option_type_id", 935339285], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.427407' WHERE "spree_products"."id" = 1060500879 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500879], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.428527' WHERE "spree_products"."id" = 1060500879  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590334, 979460285) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500879]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590330 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590331 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590332 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590333 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590334 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.441851' WHERE "spree_products"."id" = 1060500879  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590330 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.442714' WHERE "spree_products"."id" = 1060500879 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.443580' WHERE "spree_products"."id" = 1060500879  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590331 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.444364' WHERE "spree_products"."id" = 1060500879 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.445306' WHERE "spree_products"."id" = 1060500879  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590332 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.446039' WHERE "spree_products"."id" = 1060500879 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.446885' WHERE "spree_products"."id" = 1060500879  (2.8ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590333 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.490928' WHERE "spree_products"."id" = 1060500879 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500879 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.492424' WHERE "spree_products"."id" = 1060500879  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590334 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.493351' WHERE "spree_products"."id" = 1060500879 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500879) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:36.495811' WHERE "spree_products"."id" = 1060500879  (6.8ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) SELECT COUNT(*) FROM "spree_variants" Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products"  Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500878 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500879 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500877 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500877 ORDER BY spree_option_types.position Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants"  Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590322 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590323 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = 935339284 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590324 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" ORDER BY "spree_variants"."id" DESC LIMIT 1 SQL (5.1ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (3.1ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.9ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.3ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451724 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451724], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (2.9ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451724], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (3.0ms) commit transaction  (0.2ms) SELECT COUNT(*) FROM "spree_taxons"   (0.0ms) begin transaction Current value to assign : MV_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.6ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.575820' WHERE "spree_products"."id" = 1060500880 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500880], ["sku", "MV_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.577524' WHERE "spree_products"."id" = 1060500880  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590335 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.578862' WHERE "spree_products"."id" = 1060500880  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500880  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500880 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500880) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339286], ["position", 1], ["product_id", 1060500880], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500880 AND "spree_option_types"."id" = 935339287 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500880) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339287], ["position", 2], ["product_id", 1060500880], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339286) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339286], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339287) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "colour"], ["option_type_id", 935339287], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.605180' WHERE "spree_products"."id" = 1060500880 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500880], ["sku", "MV_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.606161' WHERE "spree_products"."id" = 1060500880  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590336, 979460286)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590336, 979460287) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339286) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339286], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.610497' WHERE "spree_products"."id" = 1060500880 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500880], ["sku", "MV_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.611431' WHERE "spree_products"."id" = 1060500880  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590337, 979460288)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590337, 979460287) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500880]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500880) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500880 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339286) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339286], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.621554' WHERE "spree_products"."id" = 1060500880 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500880], ["sku", "MV_001_3"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.622862' WHERE "spree_products"."id" = 1060500880  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590338, 979460289) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500880]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500880) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590336 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590337 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590338 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500880) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.633527' WHERE "spree_products"."id" = 1060500880  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590336 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.634696' WHERE "spree_products"."id" = 1060500880 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.635492' WHERE "spree_products"."id" = 1060500880  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590337 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.636304' WHERE "spree_products"."id" = 1060500880 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500880 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.637335' WHERE "spree_products"."id" = 1060500880  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590338 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.638134' WHERE "spree_products"."id" = 1060500880 Saving csv row ["MV_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "mime_type:jpeg, PDF;print_type:colour", nil, "mime_type:PNG", "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500880) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:36.640926' WHERE "spree_products"."id" = 1060500880 Current value to assign : MV_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500881 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.646698' WHERE "spree_products"."id" = 1060500881 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500881], ["sku", "MV_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.647959' WHERE "spree_products"."id" = 1060500881  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590339 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.648985' WHERE "spree_products"."id" = 1060500881  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500881  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500881 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500881) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339286], ["position", 1], ["product_id", 1060500881], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500881 AND "spree_option_types"."id" = 935339287 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500881) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339287], ["position", 2], ["product_id", 1060500881], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339287) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339287], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500881 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.662007' WHERE "spree_products"."id" = 1060500881 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500881], ["sku", "MV_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.663025' WHERE "spree_products"."id" = 1060500881  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590340, 979460290)  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590340, 979460286) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500881]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500881) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500881 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500881 AND "spree_option_types"."id" = 935339287 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500881 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.672747' WHERE "spree_products"."id" = 1060500881 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500881], ["sku", "MV_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.673701' WHERE "spree_products"."id" = 1060500881  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590341, 979460290)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590341, 979460289) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500881]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500881) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590340 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590341 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500881) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500881 LIMIT 1 SQL (5.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.681836' WHERE "spree_products"."id" = 1060500881  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590340 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.687776' WHERE "spree_products"."id" = 1060500881 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500881 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.688479' WHERE "spree_products"."id" = 1060500881  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590341 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.689229' WHERE "spree_products"."id" = 1060500881 Saving csv row ["MV_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "mime_type:jpeg;print_type:black_white", nil, "mime_type:PNG;print_type:black_white", "5|4"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500881) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500881 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 9, "updated_at" = '2012-10-21 11:07:36.691475' WHERE "spree_products"."id" = 1060500881 Current value to assign : MV_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.697410' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.698593' WHERE "spree_products"."id" = 1060500882  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590342 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.699534' WHERE "spree_products"."id" = 1060500882  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500882  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500882) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339286], ["position", 1], ["product_id", 1060500882], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339287 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500882) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339287], ["position", 2], ["product_id", 1060500882], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Load (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'size' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "size"], ["position", 0], ["presentation", "Size"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339288 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500882) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339288], ["position", 3], ["product_id", 1060500882], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339288 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339288) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "large"], ["option_type_id", 935339288], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.716725' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.717859' WHERE "spree_products"."id" = 1060500882  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590343, 979460287)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590343, 979460291)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590343, 979460286) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'sepia' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339287) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "sepia"], ["option_type_id", 935339287], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'large' AND "spree_option_values"."option_type_id" = 935339288 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.722735' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.723756' WHERE "spree_products"."id" = 1060500882  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590344, 979460292)  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590344, 979460291)  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590344, 979460286) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500882]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.730139' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.731036' WHERE "spree_products"."id" = 1060500882  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590345, 979460289) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500882]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500882) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339286 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339286 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.736508' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.737513' WHERE "spree_products"."id" = 1060500882  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590346, 979460288) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500882]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500882 AND "spree_option_types"."id" = 935339287 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339287 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500882 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.742362' WHERE "spree_products"."id" = 1060500882 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500882], ["sku", "MV_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.743139' WHERE "spree_products"."id" = 1060500882  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590347, 979460290) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500882]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500882) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Saving csv row ["MV_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "mime_type:jpeg;print_type:colour, sepia;size:large|mime_type:PNG", "mime_type:PDF|print_type:black_white", nil, "12|4|7|12"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500882) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500882 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (4.5ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) SELECT COUNT(*) FROM "spree_variants"  Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500880 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500880 ORDER BY spree_option_types.position Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = 1013590336 Booted Spree using version 1.1.3 SQL (7.3ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (2.0ms) DELETE FROM "spree_product_properties" SQL (2.1ms) DELETE FROM "spree_variants" SQL (15.7ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 14/02/2011 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.894248' WHERE "spree_products"."id" = 1060500883 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500883], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.895797' WHERE "spree_products"."id" = 1060500883  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590348 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.897834' WHERE "spree_products"."id" = 1060500883  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500883  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["product_id", nil], ["property_id", 905835119], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500883, "updated_at" = '2012-10-21 11:07:36.903918' WHERE "spree_product_properties"."id" = 1073273406 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451725 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451725], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500883 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500883, 558398916) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451726 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451726], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500883, 558398917) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500883 AND "spree_option_types"."id" = 935339289 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.1ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500883) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["option_type_id", 935339289], ["position", 1], ["product_id", 1060500883], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339289) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339289], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.927814' WHERE "spree_products"."id" = 1060500883 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500883], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.929004' WHERE "spree_products"."id" = 1060500883  (0.5ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590349, 979460293) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339289) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339289], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.933796' WHERE "spree_products"."id" = 1060500883 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500883], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.935127' WHERE "spree_products"."id" = 1060500883  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590350, 979460294) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339289) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339289], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.938666' WHERE "spree_products"."id" = 1060500883 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500883], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.939844' WHERE "spree_products"."id" = 1060500883  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590351, 979460295) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500883]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590349 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590350 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590351 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.951701' WHERE "spree_products"."id" = 1060500883  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590349 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.952574' WHERE "spree_products"."id" = 1060500883 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.953365' WHERE "spree_products"."id" = 1060500883  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590350 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.954124' WHERE "spree_products"."id" = 1060500883 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500883 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.955217' WHERE "spree_products"."id" = 1060500883  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590351 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:36.956122' WHERE "spree_products"."id" = 1060500883 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590348 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:36 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "14/02/2011", "399.99", "320", "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500883) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:38.521149' WHERE "spree_products"."id" = 1060500883 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 14/05/2011 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.535082' WHERE "spree_products"."id" = 1060500884 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500884], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.536467' WHERE "spree_products"."id" = 1060500884  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590352 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.537893' WHERE "spree_products"."id" = 1060500884  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500884  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["product_id", nil], ["property_id", 905835120], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500884, "updated_at" = '2012-10-21 11:07:38.544646' WHERE "spree_product_properties"."id" = 1073273407 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451725 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500884 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500884, 558398916) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["name", "Landscape"], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451727 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451727], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500884, 558398918) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451728 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451728], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500884, 558398919) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500884 AND "spree_option_types"."id" = 935339289 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500884) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["option_type_id", 935339289], ["position", 1], ["product_id", 1060500884], ["updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.568800' WHERE "spree_products"."id" = 1060500884 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500884], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.582909' WHERE "spree_products"."id" = 1060500884  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590353, 979460293) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.585725' WHERE "spree_products"."id" = 1060500884 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500884], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.586871' WHERE "spree_products"."id" = 1060500884  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590354, 979460294) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.589014' WHERE "spree_products"."id" = 1060500884 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500884], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.590116' WHERE "spree_products"."id" = 1060500884  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590355, 979460295) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500884]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590353 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590354 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590355 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.602100' WHERE "spree_products"."id" = 1060500884  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590353 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.603072' WHERE "spree_products"."id" = 1060500884 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.604244' WHERE "spree_products"."id" = 1060500884  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590354 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.605258' WHERE "spree_products"."id" = 1060500884 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500884 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.606117' WHERE "spree_products"."id" = 1060500884  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590355 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:38.606892' WHERE "spree_products"."id" = 1060500884 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590352 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:38 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "14/05/2011", "100", "30", "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] to table object : # Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500884) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500884 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:44.663473' WHERE "spree_products"."id" = 1060500884 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 01/07/2012 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.677933' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.679395' WHERE "spree_products"."id" = 1060500885  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590356 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.681508' WHERE "spree_products"."id" = 1060500885  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500885  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["product_id", nil], ["property_id", 905835121], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500885, "updated_at" = '2012-10-21 11:07:44.689704' WHERE "spree_product_properties"."id" = 1073273408 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["product_id", nil], ["property_id", 905835120], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500885, "updated_at" = '2012-10-21 11:07:44.692238' WHERE "spree_product_properties"."id" = 1073273409 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["product_id", nil], ["property_id", 905835122], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500885, "updated_at" = '2012-10-21 11:07:44.700238' WHERE "spree_product_properties"."id" = 1073273410 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451729 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451729], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500885 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500885, 558398920) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500885 AND "spree_option_types"."id" = 935339289 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500885) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["option_type_id", 935339289], ["position", 1], ["product_id", 1060500885], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.719388' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.721107' WHERE "spree_products"."id" = 1060500885  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590357, 979460293) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.723757' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.724857' WHERE "spree_products"."id" = 1060500885  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590358, 979460294) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339289 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.727210' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.729118' WHERE "spree_products"."id" = 1060500885  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590359, 979460295) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500885]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500885 AND "spree_option_types"."id" = 935339290 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500885) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["option_type_id", 935339290], ["position", 2], ["product_id", 1060500885], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339290 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339290) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339290], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.741322' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.742770' WHERE "spree_products"."id" = 1060500885  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590360, 979460296) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339290 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339290) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["name", "colour"], ["option_type_id", 935339290], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00]]  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.747715' WHERE "spree_products"."id" = 1060500885 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500885], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.749009' WHERE "spree_products"."id" = 1060500885  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590361, 979460297) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500885]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590357 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590358 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590359 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590360 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590361 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.765505' WHERE "spree_products"."id" = 1060500885  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590357 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.766563' WHERE "spree_products"."id" = 1060500885 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.767631' WHERE "spree_products"."id" = 1060500885  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590358 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.769399' WHERE "spree_products"."id" = 1060500885 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.770553' WHERE "spree_products"."id" = 1060500885  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590359 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.771456' WHERE "spree_products"."id" = 1060500885 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.772550' WHERE "spree_products"."id" = 1060500885  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590360 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.773589' WHERE "spree_products"."id" = 1060500885 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500885 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.774555' WHERE "spree_products"."id" = 1060500885  (0.2ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590361 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:44.775614' WHERE "spree_products"."id" = 1060500885 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590356 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (4.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:44 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "01/07/2012", "50.34", "23.34", "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] to table object : # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500885) LIMIT 1  (0.3ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500885 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:45.857965' WHERE "spree_products"."id" = 1060500885  (7.7ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500883 AND ("spree_variants".is_master = 't') LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590348) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500883)) SQL (2.9ms) DELETE FROM "spree_products" SQL (2.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (2.7ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (2.2ms) DELETE FROM "spree_variants" SQL (2.4ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.2ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.7ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.060953' WHERE "spree_products"."id" = 1060500886 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500886], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.062789' WHERE "spree_products"."id" = 1060500886  (1.5ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590362 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.065233' WHERE "spree_products"."id" = 1060500886  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500886  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["product_id", nil], ["property_id", 905835123], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500886, "updated_at" = '2012-10-21 11:07:46.071060' WHERE "spree_product_properties"."id" = 1073273411 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451730 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451730], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500886 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500886, 558398921) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451731 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451731], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (1.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500886, 558398922) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500886 AND "spree_option_types"."id" = 935339291 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (1.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500886) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["option_type_id", 935339291], ["position", 1], ["product_id", 1060500886], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339291) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339291], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.101955' WHERE "spree_products"."id" = 1060500886 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500886], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.103256' WHERE "spree_products"."id" = 1060500886  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590363, 979460298) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339291) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339291], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.108028' WHERE "spree_products"."id" = 1060500886 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500886], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.109256' WHERE "spree_products"."id" = 1060500886  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590364, 979460299) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339291) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339291], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.115504' WHERE "spree_products"."id" = 1060500886 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500886], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.122570' WHERE "spree_products"."id" = 1060500886  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590365, 979460300) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500886]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590363 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590364 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590365 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.135033' WHERE "spree_products"."id" = 1060500886  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590363 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.136876' WHERE "spree_products"."id" = 1060500886 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.137966' WHERE "spree_products"."id" = 1060500886  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590364 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.138912' WHERE "spree_products"."id" = 1060500886 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500886 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.139808' WHERE "spree_products"."id" = 1060500886  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590365 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:46.140469' WHERE "spree_products"."id" = 1060500886 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1 Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590362 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (3.2ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:46 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500886) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:47.206001' WHERE "spree_products"."id" = 1060500886 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500886 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (1.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.219678' WHERE "spree_products"."id" = 1060500887 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500887], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.221018' WHERE "spree_products"."id" = 1060500887  (0.3ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590366 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.222706' WHERE "spree_products"."id" = 1060500887  (0.9ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500887  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Created New Property # SQL (10.8ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["product_id", nil], ["property_id", 905835124], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500887, "updated_at" = '2012-10-21 11:07:47.241741' WHERE "spree_product_properties"."id" = 1073273412 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451730 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500887 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500887, 558398921) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["name", "Landscape"], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451732 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451732], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500887, 558398923) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451733 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451733], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500887, 558398924) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1 Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500887 AND "spree_option_types"."id" = 935339291 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500887) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["option_type_id", 935339291], ["position", 1], ["product_id", 1060500887], ["updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.271356' WHERE "spree_products"."id" = 1060500887 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500887], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.273456' WHERE "spree_products"."id" = 1060500887  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590367, 979460298) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.275950' WHERE "spree_products"."id" = 1060500887 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500887], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.276977' WHERE "spree_products"."id" = 1060500887  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590368, 979460299) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.279486' WHERE "spree_products"."id" = 1060500887 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500887], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.281612' WHERE "spree_products"."id" = 1060500887  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590369, 979460300) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500887]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590367 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590368 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590369 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.295844' WHERE "spree_products"."id" = 1060500887  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590367 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.297859' WHERE "spree_products"."id" = 1060500887 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.299491' WHERE "spree_products"."id" = 1060500887  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590368 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.300271' WHERE "spree_products"."id" = 1060500887 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500887 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.301142' WHERE "spree_products"."id" = 1060500887  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590369 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:47.302123' WHERE "spree_products"."id" = 1060500887 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590366 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:47 UTC +00:00], ["attachment_width", 2424], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500887) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500887 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:54.790438' WHERE "spree_products"."id" = 1060500887 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg"] succesfully SAVED : ID 1060500887 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.802475' WHERE "spree_products"."id" = 1060500888 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.803834' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590370 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.805361' WHERE "spree_products"."id" = 1060500888  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500888  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["product_id", nil], ["property_id", 905835125], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500888, "updated_at" = '2012-10-21 11:07:54.812856' WHERE "spree_product_properties"."id" = 1073273413 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["product_id", nil], ["property_id", 905835124], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500888, "updated_at" = '2012-10-21 11:07:54.815215' WHERE "spree_product_properties"."id" = 1073273414 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["product_id", nil], ["property_id", 905835126], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["value", nil]]  (0.3ms) UPDATE "spree_product_properties" SET "product_id" = 1060500888, "updated_at" = '2012-10-21 11:07:54.819089' WHERE "spree_product_properties"."id" = 1073273415 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451734 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451734], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500888 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500888, 558398925) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500888 AND "spree_option_types"."id" = 935339291 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500888) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["option_type_id", 935339291], ["position", 1], ["product_id", 1060500888], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.836332' WHERE "spree_products"."id" = 1060500888 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.837365' WHERE "spree_products"."id" = 1060500888  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590371, 979460298) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.840343' WHERE "spree_products"."id" = 1060500888 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.841607' WHERE "spree_products"."id" = 1060500888  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590372, 979460299) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339291 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.844444' WHERE "spree_products"."id" = 1060500888 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.845631' WHERE "spree_products"."id" = 1060500888  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590373, 979460300) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500888]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500888 AND "spree_option_types"."id" = 935339292 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500888) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["option_type_id", 935339292], ["position", 2], ["product_id", 1060500888], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]] Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339292 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339292) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339292], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]]  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.861885' WHERE "spree_products"."id" = 1060500888 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.863169' WHERE "spree_products"."id" = 1060500888  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590374, 979460301) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339292 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339292) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["name", "colour"], ["option_type_id", 935339292], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.868124' WHERE "spree_products"."id" = 1060500888 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500888], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.869621' WHERE "spree_products"."id" = 1060500888  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590375, 979460302) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500888]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590371 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590372 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590373 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590374 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590375 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.885326' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590371 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.886363' WHERE "spree_products"."id" = 1060500888 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.887365' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590372 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.888344' WHERE "spree_products"."id" = 1060500888 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.889313' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590373 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.890338' WHERE "spree_products"."id" = 1060500888 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.891550' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590374 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.892584' WHERE "spree_products"."id" = 1060500888 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500888 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.893759' WHERE "spree_products"."id" = 1060500888  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590375 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:54.894365' WHERE "spree_products"."id" = 1060500888 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590370 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:54 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500888) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500888 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:56.588788' WHERE "spree_products"."id" = 1060500888 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings", "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500888 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (46.7ms) commit transaction Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500886 AND ("spree_variants".is_master = 't') LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590362) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500886)) SQL (36.3ms) DELETE FROM "spree_products" SQL (3.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.0ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.3ms) DELETE FROM "spree_taxonomies" SQL (1.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.1ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: #  (0.1ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.9ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.742258' WHERE "spree_products"."id" = 1060500889 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500889], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.743389' WHERE "spree_products"."id" = 1060500889  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590376 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.744912' WHERE "spree_products"."id" = 1060500889  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500889  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["product_id", nil], ["property_id", 905835127], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500889, "updated_at" = '2012-10-21 11:07:56.751217' WHERE "spree_product_properties"."id" = 1073273416 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500889) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451735 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (1.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451735], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500889 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500889, 558398926) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451736 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451736], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500889, 558398927) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500889) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::OptionType Exists (0.6ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500889 AND "spree_option_types"."id" = 935339293 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500889) ORDER BY position DESC LIMIT 1 SQL (0.0ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["option_type_id", 935339293], ["position", 1], ["product_id", 1060500889], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339293) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339293], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.776301' WHERE "spree_products"."id" = 1060500889 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500889], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.777321' WHERE "spree_products"."id" = 1060500889  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590377, 979460303) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339293) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339293], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.781066' WHERE "spree_products"."id" = 1060500889 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500889], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:56.785684' WHERE "spree_products"."id" = 1060500889  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590378, 979460304) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::OptionValue Load (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339293) ORDER BY position DESC LIMIT 1 SQL (314.9ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339293], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:56 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.111821' WHERE "spree_products"."id" = 1060500889 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500889], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.113335' WHERE "spree_products"."id" = 1060500889  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590379, 979460305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500889]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500889) LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590377 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590378 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590379 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500889) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.128741' WHERE "spree_products"."id" = 1060500889  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590377 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.130393' WHERE "spree_products"."id" = 1060500889 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.131192' WHERE "spree_products"."id" = 1060500889  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590378 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.132238' WHERE "spree_products"."id" = 1060500889 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500889 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.133393' WHERE "spree_products"."id" = 1060500889  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590379 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.134313' WHERE "spree_products"."id" = 1060500889 Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500889) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500889 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:57.136393' WHERE "spree_products"."id" = 1060500889 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500889 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.143387' WHERE "spree_products"."id" = 1060500890 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500890], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.144394' WHERE "spree_products"."id" = 1060500890  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590380 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.146659' WHERE "spree_products"."id" = 1060500890  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500890  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["product_id", nil], ["property_id", 905835128], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500890, "updated_at" = '2012-10-21 11:07:57.152229' WHERE "spree_product_properties"."id" = 1073273417 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500890) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451735 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500890 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500890, 558398926) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451737 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451737], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500890, 558398928) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451735 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398926 AND "spree_taxons"."taxonomy_id" = 854451735 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398926]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398926], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451735], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398926]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398929]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398929 THEN 558398926 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398926]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398929]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398929 AND "spree_taxons"."taxonomy_id" = 854451735 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398929]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398929], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451735], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398929]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398930]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398930 THEN 558398929 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398929]] Spree::Taxon Load (133.8ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398930]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500890, 558398929)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500890, 558398930) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500890) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500890 AND "spree_option_types"."id" = 935339293 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (11.9ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500890) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["option_type_id", 935339293], ["position", 1], ["product_id", 1060500890], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.331856' WHERE "spree_products"."id" = 1060500890 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500890], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.332950' WHERE "spree_products"."id" = 1060500890  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590381, 979460303) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (1.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.380700' WHERE "spree_products"."id" = 1060500890 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500890], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.382008' WHERE "spree_products"."id" = 1060500890  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590382, 979460304) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.385057' WHERE "spree_products"."id" = 1060500890 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500890], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.385932' WHERE "spree_products"."id" = 1060500890  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590383, 979460305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500890]] Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500890) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590381 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590382 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590383 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500890) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.399235' WHERE "spree_products"."id" = 1060500890  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590381 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.400235' WHERE "spree_products"."id" = 1060500890 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.402125' WHERE "spree_products"."id" = 1060500890  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590382 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.402941' WHERE "spree_products"."id" = 1060500890 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500890 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.403730' WHERE "spree_products"."id" = 1060500890  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590383 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.404731' WHERE "spree_products"."id" = 1060500890 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500890) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500890 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:57.406746' WHERE "spree_products"."id" = 1060500890 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500890 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.415779' WHERE "spree_products"."id" = 1060500891 SQL (3.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.420397' WHERE "spree_products"."id" = 1060500891  (0.0ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590384 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.421618' WHERE "spree_products"."id" = 1060500891  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500891  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["product_id", nil], ["property_id", 905835129], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500891, "updated_at" = '2012-10-21 11:07:57.427397' WHERE "spree_product_properties"."id" = 1073273418 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["product_id", nil], ["property_id", 905835128], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500891, "updated_at" = '2012-10-21 11:07:57.433441' WHERE "spree_product_properties"."id" = 1073273419 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["product_id", nil], ["property_id", 905835130], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500891, "updated_at" = '2012-10-21 11:07:57.436315' WHERE "spree_product_properties"."id" = 1073273420 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500891) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451738 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451738], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500891 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500891, 558398931) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451735 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398926 AND "spree_taxons"."taxonomy_id" = 854451735 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398926]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398926], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451735], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398926]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398932]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398932 THEN 558398926 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398926]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398932]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500891, 558398932)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500891, 558398926) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500891) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500891 AND "spree_option_types"."id" = 935339293 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500891) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["option_type_id", 935339293], ["position", 1], ["product_id", 1060500891], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.462951' WHERE "spree_products"."id" = 1060500891 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.464800' WHERE "spree_products"."id" = 1060500891  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590385, 979460303) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.467069' WHERE "spree_products"."id" = 1060500891 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.468161' WHERE "spree_products"."id" = 1060500891  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590386, 979460304) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339293 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.470799' WHERE "spree_products"."id" = 1060500891 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.471778' WHERE "spree_products"."id" = 1060500891  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590387, 979460305) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500891]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionType Exists (0.2ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500891 AND "spree_option_types"."id" = 935339294 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500891) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["option_type_id", 935339294], ["position", 2], ["product_id", 1060500891], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339294 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339294) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339294], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.483904' WHERE "spree_products"."id" = 1060500891 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.485014' WHERE "spree_products"."id" = 1060500891  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590388, 979460306) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339294 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339294) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "colour"], ["option_type_id", 935339294], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.490066' WHERE "spree_products"."id" = 1060500891 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500891], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.491052' WHERE "spree_products"."id" = 1060500891  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590389, 979460307) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500891]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500891) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590385 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590386 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590387 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590388 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590389 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500891) LIMIT 1  (0.0ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.535142' WHERE "spree_products"."id" = 1060500891  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590385 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.536524' WHERE "spree_products"."id" = 1060500891 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.537621' WHERE "spree_products"."id" = 1060500891  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590386 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.538955' WHERE "spree_products"."id" = 1060500891 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.539822' WHERE "spree_products"."id" = 1060500891  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590387 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.540924' WHERE "spree_products"."id" = 1060500891 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.541836' WHERE "spree_products"."id" = 1060500891  (0.8ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590388 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.543358' WHERE "spree_products"."id" = 1060500891 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500891 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.544304' WHERE "spree_products"."id" = 1060500891  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590389 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.545021' WHERE "spree_products"."id" = 1060500891 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500891) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:57.548235' WHERE "spree_products"."id" = 1060500891 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500891 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (12.0ms) commit transaction  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500891 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590384) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500891)) Excel Loader processing 0 rows  (0.0ms) begin transaction  (0.2ms) rollback transaction SQL (5.3ms) DELETE FROM "spree_products" SQL (0.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.0ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.6ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.6ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.3ms) SELECT COUNT(*) FROM "spree_products" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.742756' WHERE "spree_products"."id" = 1060500892 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500892], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.744069' WHERE "spree_products"."id" = 1060500892  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590390 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.745166' WHERE "spree_products"."id" = 1060500892  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500892  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["product_id", nil], ["property_id", 905835131], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500892, "updated_at" = '2012-10-21 11:07:57.751401' WHERE "spree_product_properties"."id" = 1073273421 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500892) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451739 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451739], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500892 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500892, 558398933) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451740 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451740], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500892, 558398934) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500892) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500892 AND "spree_option_types"."id" = 935339295 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500892) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["option_type_id", 935339295], ["position", 1], ["product_id", 1060500892], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339295) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339295], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.775401' WHERE "spree_products"."id" = 1060500892 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500892], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:57.776781' WHERE "spree_products"."id" = 1060500892  (0.4ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590391, 979460308) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339295) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339295], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:57 UTC +00:00]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 EXPLAIN (0.5ms) EXPLAIN QUERY PLAN SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 EXPLAIN for: SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 0|0|TABLE spree_products USING PRIMARY KEY SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.403652' WHERE "spree_products"."id" = 1060500892 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500892], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.405819' WHERE "spree_products"."id" = 1060500892  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590392, 979460309) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339295) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339295], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.410904' WHERE "spree_products"."id" = 1060500892 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500892], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.411927' WHERE "spree_products"."id" = 1060500892  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590393, 979460310) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500892]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500892) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590391 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590392 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590393 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500892) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.425392' WHERE "spree_products"."id" = 1060500892  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590391 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.426541' WHERE "spree_products"."id" = 1060500892 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.427516' WHERE "spree_products"."id" = 1060500892  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590392 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.428410' WHERE "spree_products"."id" = 1060500892 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500892 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.429457' WHERE "spree_products"."id" = 1060500892  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590393 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.430379' WHERE "spree_products"."id" = 1060500892 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500892) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500892 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:07:58.432649' WHERE "spree_products"."id" = 1060500892 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500892 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (1.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.443113' WHERE "spree_products"."id" = 1060500893 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500893], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.449613' WHERE "spree_products"."id" = 1060500893  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590394 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.451127' WHERE "spree_products"."id" = 1060500893  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500893  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["product_id", nil], ["property_id", 905835132], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500893, "updated_at" = '2012-10-21 11:07:58.457672' WHERE "spree_product_properties"."id" = 1073273422 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500893) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451739 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500893 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500893, 558398933) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451741 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451741], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500893, 558398935) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451739 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398933 AND "spree_taxons"."taxonomy_id" = 854451739 LIMIT 1  (0.0ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398933]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Nature"], ["parent_id", 558398933], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451739], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398933]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398936]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 6 THEN "lft" + 8 - 6 WHEN "lft" BETWEEN 7 AND 8 THEN "lft" + 2 - 7 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 6 THEN "rgt" + 8 - 6 WHEN "rgt" BETWEEN 7 AND 8 THEN "rgt" + 2 - 7 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398936 THEN 558398933 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398933]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398936]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398936 AND "spree_taxons"."taxonomy_id" = 854451739 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398936]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Seascape"], ["parent_id", 558398936], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451739], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398936]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398937]] SQL (1.0ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 3 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 3 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 3 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 3 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398937 THEN 558398936 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398936]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398937]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500893, 558398936)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500893, 558398937) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500893) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500893 AND "spree_option_types"."id" = 935339295 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500893) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["option_type_id", 935339295], ["position", 1], ["product_id", 1060500893], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.493690' WHERE "spree_products"."id" = 1060500893 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500893], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.494638' WHERE "spree_products"."id" = 1060500893  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590395, 979460308) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.497309' WHERE "spree_products"."id" = 1060500893 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500893], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (82.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.499319' WHERE "spree_products"."id" = 1060500893  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590396, 979460309) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.584667' WHERE "spree_products"."id" = 1060500893 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500893], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.586229' WHERE "spree_products"."id" = 1060500893  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590397, 979460310) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500893]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500893) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590395 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590396 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590397 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500893) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.601159' WHERE "spree_products"."id" = 1060500893  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590395 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.603205' WHERE "spree_products"."id" = 1060500893 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.603980' WHERE "spree_products"."id" = 1060500893  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590396 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.604904' WHERE "spree_products"."id" = 1060500893 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500893 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.605904' WHERE "spree_products"."id" = 1060500893  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590397 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.606916' WHERE "spree_products"."id" = 1060500893 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500893) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500893 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:07:58.608661' WHERE "spree_products"."id" = 1060500893 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500893 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.616412' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.617379' WHERE "spree_products"."id" = 1060500894  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590398 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.619412' WHERE "spree_products"."id" = 1060500894  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500894  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["product_id", nil], ["property_id", 905835133], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["value", nil]]  (1.5ms) UPDATE "spree_product_properties" SET "product_id" = 1060500894, "updated_at" = '2012-10-21 11:07:58.625065' WHERE "spree_product_properties"."id" = 1073273423 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["product_id", nil], ["property_id", 905835132], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500894, "updated_at" = '2012-10-21 11:07:58.628402' WHERE "spree_product_properties"."id" = 1073273424 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["product_id", nil], ["property_id", 905835134], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500894, "updated_at" = '2012-10-21 11:07:58.631407' WHERE "spree_product_properties"."id" = 1073273425 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500894) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451742 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451742], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500894 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500894, 558398938) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451739 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398933 AND "spree_taxons"."taxonomy_id" = 854451739 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398933]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Landscape"], ["parent_id", 558398933], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451739], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398933]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398939]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 6 AND 12 THEN "lft" + 14 - 12 WHEN "lft" BETWEEN 13 AND 14 THEN "lft" + 6 - 13 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 6 AND 12 THEN "rgt" + 14 - 12 WHEN "rgt" BETWEEN 13 AND 14 THEN "rgt" + 6 - 13 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398939 THEN 558398933 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398933]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398939]] Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500894, 558398939)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500894, 558398933) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500894) LIMIT 1 Spree::OptionType Load (4.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500894 AND "spree_option_types"."id" = 935339295 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500894) ORDER BY position DESC LIMIT 1 SQL (0.4ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["option_type_id", 935339295], ["position", 1], ["product_id", 1060500894], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.921546' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.923203' WHERE "spree_products"."id" = 1060500894  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590399, 979460308) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.925416' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.926284' WHERE "spree_products"."id" = 1060500894  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590400, 979460309) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339295 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.928607' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.929416' WHERE "spree_products"."id" = 1060500894  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590401, 979460310) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500894]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500894 AND "spree_option_types"."id" = 935339296 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500894) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["option_type_id", 935339296], ["position", 2], ["product_id", 1060500894], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339296 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339296) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339296], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.941495' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.942303' WHERE "spree_products"."id" = 1060500894  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590402, 979460311) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339296 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339296) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00], ["name", "colour"], ["option_type_id", 935339296], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:58 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.952008' WHERE "spree_products"."id" = 1060500894 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500894], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.952989' WHERE "spree_products"."id" = 1060500894  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590403, 979460312) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500894]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500894) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590399 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590400 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590401 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590402 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590403 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500894) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.967514' WHERE "spree_products"."id" = 1060500894  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590399 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.968565' WHERE "spree_products"."id" = 1060500894 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.969497' WHERE "spree_products"."id" = 1060500894  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590400 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.970807' WHERE "spree_products"."id" = 1060500894 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.971677' WHERE "spree_products"."id" = 1060500894  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590401 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.972601' WHERE "spree_products"."id" = 1060500894 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.973762' WHERE "spree_products"."id" = 1060500894  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590402 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.974761' WHERE "spree_products"."id" = 1060500894 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500894 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.975669' WHERE "spree_products"."id" = 1060500894  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590403 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:58.976412' WHERE "spree_products"."id" = 1060500894 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500894) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:07:58.979021' WHERE "spree_products"."id" = 1060500894 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500894 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (13.3ms) commit transaction Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo third row in future' LIMIT 1 Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500894 AND ("spree_variants".is_master = 't') LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_assets" LEFT JOIN "spree_variants" ON "spree_variants".id = "spree_assets".viewable_id WHERE "spree_assets"."type" IN ('Spree::Image') AND (("spree_assets".viewable_type = 'Spree::Variant' AND "spree_assets".viewable_id = 1013590398) OR ("spree_assets".viewable_type = 'Spree::Product' AND "spree_assets".viewable_id = 1060500894)) Excel Loader processing 0 rows  (0.1ms) begin transaction  (0.0ms) rollback transaction SQL (2.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.2ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (4.1ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.6ms) DELETE FROM "spree_taxons" SQL (5.1ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (1.9ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : MULTI_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.8ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (1.0ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.327068' WHERE "spree_products"."id" = 1060500895 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500895], ["sku", "MULTI_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.328707' WHERE "spree_products"."id" = 1060500895  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590404 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.330071' WHERE "spree_products"."id" = 1060500895  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500895  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["product_id", nil], ["property_id", 905835135], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500895, "updated_at" = '2012-10-21 11:07:59.335943' WHERE "spree_product_properties"."id" = 1073273426 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451743 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451743], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500895 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500895, 558398940) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451744 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451744], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500895, 558398941) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500895 AND "spree_option_types"."id" = 935339297 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500895) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["option_type_id", 935339297], ["position", 1], ["product_id", 1060500895], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339297) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339297], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.357192' WHERE "spree_products"."id" = 1060500895 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500895], ["sku", "MULTI_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.358257' WHERE "spree_products"."id" = 1060500895  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590405, 979460313) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339297) ORDER BY position DESC LIMIT 1 SQL (0.6ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339297], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.643854' WHERE "spree_products"."id" = 1060500895 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500895], ["sku", "MULTI_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.645286' WHERE "spree_products"."id" = 1060500895  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590406, 979460314) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339297) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339297], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.649783' WHERE "spree_products"."id" = 1060500895 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500895], ["sku", "MULTI_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.651010' WHERE "spree_products"."id" = 1060500895  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590407, 979460315) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500895]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590405 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590406 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590407 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.664640' WHERE "spree_products"."id" = 1060500895  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590405 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.665690' WHERE "spree_products"."id" = 1060500895 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.666903' WHERE "spree_products"."id" = 1060500895  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590406 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.667860' WHERE "spree_products"."id" = 1060500895 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500895 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.668886' WHERE "spree_products"."id" = 1060500895  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590407 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:07:59.670385' WHERE "spree_products"."id" = 1060500895 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1 Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590404 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.4ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:07:59 UTC +00:00], ["attachment_width", 240], ["position", 1], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1 Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.0ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:08:02 UTC +00:00], ["attachment_width", 240], ["position", 2], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Spree::Product Exists (0.8ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1 Spree::Asset Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.9ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_003_ror_mug.jpeg"], ["attachment_file_size", 11841], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:08:03 UTC +00:00], ["attachment_width", 240], ["position", 3], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_003_ror_mug.jpeg" Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500895) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:08:04.095657' WHERE "spree_products"."id" = 1060500895 Row ["MULTI_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", "mime_type:jpeg,PDF,PNG", "12|6|7", "fixtures/images/DEMO_001_ror_bag.jpeg", "fixtures/images/DEMO_001_ror_bag.jpeg:more random alt text", "fixtures/images/DEMO_003_ror_mug.jpeg"] succesfully SAVED : ID 1060500895 Current value to assign : MULTI_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.110133' WHERE "spree_products"."id" = 1060500896 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500896], ["sku", "MULTI_002"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.111255' WHERE "spree_products"."id" = 1060500896  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590408 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.113135' WHERE "spree_products"."id" = 1060500896  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500896  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Created New Property # SQL (0.5ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["product_id", nil], ["property_id", 905835136], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500896, "updated_at" = '2012-10-21 11:08:04.121481' WHERE "spree_product_properties"."id" = 1073273427 Created New ProductProperty # Spree::Product Exists (1.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451743 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500896 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500896, 558398940) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["name", "Landscape"], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451745 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451745], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500896, 558398942) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451746 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451746], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500896, 558398943) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (1.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500896 AND "spree_option_types"."id" = 935339297 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500896) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["option_type_id", 935339297], ["position", 1], ["product_id", 1060500896], ["updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.152983' WHERE "spree_products"."id" = 1060500896 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500896], ["sku", "MULTI_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.154079' WHERE "spree_products"."id" = 1060500896  (1.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590409, 979460313) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.157889' WHERE "spree_products"."id" = 1060500896 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500896], ["sku", "MULTI_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.158755' WHERE "spree_products"."id" = 1060500896  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590410, 979460314) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339297 LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.161672' WHERE "spree_products"."id" = 1060500896 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500896], ["sku", "MULTI_002_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.167173' WHERE "spree_products"."id" = 1060500896  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590411, 979460315) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500896]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590409 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590410 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590411 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1  (0.4ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.182285' WHERE "spree_products"."id" = 1060500896  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590409 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.183475' WHERE "spree_products"."id" = 1060500896 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.184563' WHERE "spree_products"."id" = 1060500896  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590410 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.185481' WHERE "spree_products"."id" = 1060500896 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500896 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.186782' WHERE "spree_products"."id" = 1060500896  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590411 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:04.188973' WHERE "spree_products"."id" = 1060500896 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1 Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590408 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Spree::Asset Load (2.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (0.8ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_002_Powerstation.jpg"], ["attachment_file_size", 3702557], ["attachment_height", 1584], ["attachment_updated_at", Sun, 21 Oct 2012 11:08:04 UTC +00:00], ["attachment_width", 2424], ["position", 4], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_002_Powerstation.jpg" Spree::Asset Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE ("spree_assets"."viewable_id" IS NULL) ORDER BY position DESC LIMIT 1 SQL (1.1ms) INSERT INTO "spree_assets" ("alt", "attachment_content_type", "attachment_file_name", "attachment_file_size", "attachment_height", "attachment_updated_at", "attachment_width", "position", "type", "viewable_id", "viewable_type") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["alt", nil], ["attachment_content_type", "image/jpeg"], ["attachment_file_name", "DEMO_001_ror_bag.jpeg"], ["attachment_file_size", 16307], ["attachment_height", 240], ["attachment_updated_at", Sun, 21 Oct 2012 11:08:09 UTC +00:00], ["attachment_width", 240], ["position", 5], ["type", "Spree::Image"], ["viewable_id", nil], ["viewable_type", nil]] Product assigned Image from : "fixtures/images/DEMO_001_ror_bag.jpeg" Current value to assign : Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500896) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500896 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:08:10.721264' WHERE "spree_products"."id" = 1060500896 Row ["MULTI_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Landscape|Oils", "mime_type:jpeg, PDF,PNG", "5|4|2", "fixtures/images/DEMO_002_Powerstation.jpg:some random alt text|fixtures/images/DEMO_001_ror_bag.jpeg"] succesfully SAVED : ID 1060500896 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (4.8ms) commit transaction  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."name" = 'Demo Product for AR Loader' LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500895 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = 1013590404 AND "spree_assets"."viewable_type" = 'Spree::Variant' ORDER BY position Booted Spree using version 1.1.3 SQL (11.4ms) DELETE FROM "spree_products" SQL (2.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.4ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (2.5ms) DELETE FROM "spree_variants" SQL (2.8ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451747 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451747], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (2.6ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451747], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.6ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451747], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (1.8ms) commit transaction Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons"  SQL (2.7ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.3ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (2.1ms) DELETE FROM "spree_taxonomies" SQL (2.0ms) DELETE FROM "spree_zones"  (0.2ms) begin transaction SQL (0.3ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451748 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451748], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (3.1ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", "Nice paintings"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451748], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (2.1ms) commit transaction  (0.0ms) begin transaction  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00], ["description", "Waves and sand"], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "Sea"], ["parent_id", nil], ["permalink", "sea"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451748], ["updated_at", Sun, 21 Oct 2012 11:08:10 UTC +00:00]]  (2.4ms) commit transaction Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451748 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451748 LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."id" = 854451748 LIMIT 1 Booted Spree using version 1.1.3 SQL (5.2ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (5.1ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.9ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.4ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.2ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451749], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451749], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (2.2ms) commit transaction  (0.3ms) begin transaction  (0.6ms) UPDATE "spree_taxons" SET "parent_id" = 558398950, "updated_at" = '2012-10-21 11:08:11.121051' WHERE "spree_taxons"."id" = 558398951 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398950]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398951]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398951 THEN 558398950 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398950]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398951]]  (2.3ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398950 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.8ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.161117' WHERE "spree_products"."id" = 1060500897 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500897], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.162668' WHERE "spree_products"."id" = 1060500897  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590412 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.164422' WHERE "spree_products"."id" = 1060500897  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500897  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835137], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500897, "updated_at" = '2012-10-21 11:08:11.170766' WHERE "spree_product_properties"."id" = 1073273428 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500897) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500897 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500897, 558398950) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451750 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451750], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500897, 558398952) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500897) LIMIT 1 Spree::OptionType Load (1.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500897 AND "spree_option_types"."id" = 935339298 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500897) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339298], ["position", 1], ["product_id", 1060500897], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339298) ORDER BY position DESC LIMIT 1 SQL (0.3ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339298], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.196864' WHERE "spree_products"."id" = 1060500897 SQL (0.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500897], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.198544' WHERE "spree_products"."id" = 1060500897  (0.3ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590413, 979460316) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339298) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339298], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.202922' WHERE "spree_products"."id" = 1060500897 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500897], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.237550' WHERE "spree_products"."id" = 1060500897  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590414, 979460317) Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339298) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339298], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.242472' WHERE "spree_products"."id" = 1060500897 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500897], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.243693' WHERE "spree_products"."id" = 1060500897  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590415, 979460318) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500897]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500897) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590413 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590414 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590415 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500897) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.260134' WHERE "spree_products"."id" = 1060500897  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590413 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.261074' WHERE "spree_products"."id" = 1060500897 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.261976' WHERE "spree_products"."id" = 1060500897  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590414 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.262796' WHERE "spree_products"."id" = 1060500897 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.263773' WHERE "spree_products"."id" = 1060500897  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590415 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.264543' WHERE "spree_products"."id" = 1060500897 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500897) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500897 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:08:11.266676' WHERE "spree_products"."id" = 1060500897 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", "Paintings|WaterColour", nil, "mime_type:jpeg,PDF,PNG", "12|6|7"] succesfully SAVED : ID 1060500897 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.272783' WHERE "spree_products"."id" = 1060500898 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500898], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.273787' WHERE "spree_products"."id" = 1060500898  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590416 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.274879' WHERE "spree_products"."id" = 1060500898  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500898  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835138], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500898, "updated_at" = '2012-10-21 11:08:11.280039' WHERE "spree_product_properties"."id" = 1073273429 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500898) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500898 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500898, 558398950) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451751 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451751], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500898, 558398953) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398950 AND "spree_taxons"."taxonomy_id" = 854451749 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398950]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398950], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451749], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398950]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398954]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398954 THEN 558398950 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398950]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398954]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398954 AND "spree_taxons"."taxonomy_id" = 854451749 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398954]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398954], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451749], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398954]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398955]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398955 THEN 558398954 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398954]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398955]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500898, 558398954)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500898, 558398955) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500898) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500898 AND "spree_option_types"."id" = 935339298 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500898) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339298], ["position", 1], ["product_id", 1060500898], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.308035' WHERE "spree_products"."id" = 1060500898 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500898], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.309023' WHERE "spree_products"."id" = 1060500898  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590417, 979460316) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.311233' WHERE "spree_products"."id" = 1060500898 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500898], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.312371' WHERE "spree_products"."id" = 1060500898  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590418, 979460317) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.314681' WHERE "spree_products"."id" = 1060500898 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500898], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.315645' WHERE "spree_products"."id" = 1060500898  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590419, 979460318) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500898]] Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500898) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590417 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590418 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590419 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500898) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.328218' WHERE "spree_products"."id" = 1060500898  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590417 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.329143' WHERE "spree_products"."id" = 1060500898 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.330120' WHERE "spree_products"."id" = 1060500898  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590418 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.330895' WHERE "spree_products"."id" = 1060500898 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.331848' WHERE "spree_products"."id" = 1060500898  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590419 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.332740' WHERE "spree_products"."id" = 1060500898 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500898) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500898 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:08:11.334811' WHERE "spree_products"."id" = 1060500898 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", "Paintings|Oils|Paintings>Nature>Seascape", "mime_type:jpeg, PDF,PNG", nil, "5|4|2"] succesfully SAVED : ID 1060500898 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.340866' WHERE "spree_products"."id" = 1060500899 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.341952' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590420 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.343271' WHERE "spree_products"."id" = 1060500899  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500899  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (2.0ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835139], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500899, "updated_at" = '2012-10-21 11:08:11.401333' WHERE "spree_product_properties"."id" = 1073273430 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835138], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", "Example free value"]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500899, "updated_at" = '2012-10-21 11:08:11.404294' WHERE "spree_product_properties"."id" = 1073273431 Created New ProductProperty # Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835140], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500899, "updated_at" = '2012-10-21 11:08:11.407180' WHERE "spree_product_properties"."id" = 1073273432 Created New ProductProperty # Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500899) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451752 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451752], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500899 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500899, 558398956) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398950 AND "spree_taxons"."taxonomy_id" = 854451749 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500899, 558398951)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500899, 558398950) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500899) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.9ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500899 AND "spree_option_types"."id" = 935339298 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500899) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339298], ["position", 1], ["product_id", 1060500899], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.428280' WHERE "spree_products"."id" = 1060500899 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.429318' WHERE "spree_products"."id" = 1060500899  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590421, 979460316) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.431764' WHERE "spree_products"."id" = 1060500899 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.432746' WHERE "spree_products"."id" = 1060500899  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590422, 979460317) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339298 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.434847' WHERE "spree_products"."id" = 1060500899 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.435835' WHERE "spree_products"."id" = 1060500899  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590423, 979460318) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500899]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500899 AND "spree_option_types"."id" = 935339299 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500899) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339299], ["position", 2], ["product_id", 1060500899], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339299 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339299) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339299], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.450842' WHERE "spree_products"."id" = 1060500899 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.452139' WHERE "spree_products"."id" = 1060500899  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590424, 979460319) Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339299 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339299) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "colour"], ["option_type_id", 935339299], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.467039' WHERE "spree_products"."id" = 1060500899 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500899], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.468067' WHERE "spree_products"."id" = 1060500899  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590425, 979460320) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500899]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500899) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590421 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590422 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590423 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590424 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590425 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500899) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.481488' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590421 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.483355' WHERE "spree_products"."id" = 1060500899 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.484271' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590422 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.485246' WHERE "spree_products"."id" = 1060500899 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.486192' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590423 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.487145' WHERE "spree_products"."id" = 1060500899 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.488661' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590424 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.489437' WHERE "spree_products"."id" = 1060500899 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500899 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.490390' WHERE "spree_products"."id" = 1060500899  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590425 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.491204' WHERE "spree_products"."id" = 1060500899 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500899) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500899 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:08:11.493300' WHERE "spree_products"."id" = 1060500899 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002|test_pp_003:Example free value|yet_another_property", "Drawings|Paintings>Landscape", nil, "mime_type:jpeg,PDF,PNG|print_type:black_white,colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500899 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (23.6ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500897 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500897 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500898 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500898 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398950 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451749 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398954 LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398954 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398955 ORDER BY "lft" SQL (3.1ms) DELETE FROM "spree_products" SQL (5.1ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (3.2ms) DELETE FROM "spree_option_types" SQL (2.1ms) DELETE FROM "spree_option_values" SQL (1.7ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (2.3ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.4ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451753], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (3.8ms) commit transaction  (0.0ms) begin transaction  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451753], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (2.0ms) commit transaction  (0.0ms) begin transaction  (0.3ms) UPDATE "spree_taxons" SET "parent_id" = 558398957, "updated_at" = '2012-10-21 11:08:11.597149' WHERE "spree_taxons"."id" = 558398958 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398957]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398958]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398958 THEN 558398957 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398957]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398958]]  (1.8ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398957 ORDER BY "lft" Excel Loader processing 0 rows  (0.1ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.7ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.628880' WHERE "spree_products"."id" = 1060500900 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500900], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.629975' WHERE "spree_products"."id" = 1060500900  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590426 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.631239' WHERE "spree_products"."id" = 1060500900  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500900  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835141], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500900, "updated_at" = '2012-10-21 11:08:11.636853' WHERE "spree_product_properties"."id" = 1073273433 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (2.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1 Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500900 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500900, 558398957) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451754 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451754], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500900, 558398959) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionType Exists (0.8ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500900 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500900) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339300], ["position", 1], ["product_id", 1060500900], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339300) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339300], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.707674' WHERE "spree_products"."id" = 1060500900 SQL (0.8ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500900], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.709599' WHERE "spree_products"."id" = 1060500900  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590427, 979460321) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500900]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500900 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339300) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339300], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.719410' WHERE "spree_products"."id" = 1060500900 SQL (0.4ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500900], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.721228' WHERE "spree_products"."id" = 1060500900  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590428, 979460322) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500900]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500900 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1 Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339300) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339300], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.730238' WHERE "spree_products"."id" = 1060500900 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500900], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.731279' WHERE "spree_products"."id" = 1060500900  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590429, 979460323) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500900]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590427 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590428 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590429 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.747153' WHERE "spree_products"."id" = 1060500900  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590427 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.748164' WHERE "spree_products"."id" = 1060500900 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.749105' WHERE "spree_products"."id" = 1060500900  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590428 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.749997' WHERE "spree_products"."id" = 1060500900 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.750935' WHERE "spree_products"."id" = 1060500900  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590429 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.751762' WHERE "spree_products"."id" = 1060500900 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500900) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500900 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:08:11.754787' WHERE "spree_products"."id" = 1060500900 Row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] succesfully SAVED : ID 1060500900 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.760842' WHERE "spree_products"."id" = 1060500901 SQL (3.5ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500901], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.765401' WHERE "spree_products"."id" = 1060500901  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590430 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.766598' WHERE "spree_products"."id" = 1060500901  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500901  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.3ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835142], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500901, "updated_at" = '2012-10-21 11:08:11.774133' WHERE "spree_product_properties"."id" = 1073273434 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500901 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500901, 558398957) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451755 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451755], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500901, 558398960) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398957 AND "spree_taxons"."taxonomy_id" = 854451753 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398957]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398957], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451753], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398957]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398961]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398961 THEN 558398957 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398957]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398961]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398961 AND "spree_taxons"."taxonomy_id" = 854451753 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398961]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398961], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451753], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398961]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398962]] SQL (0.9ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398962 THEN 558398961 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398961]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398962]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500901, 558398961)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500901, 558398962) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500901 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500901) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339300], ["position", 1], ["product_id", 1060500901], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.860863' WHERE "spree_products"."id" = 1060500901 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500901], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.862121' WHERE "spree_products"."id" = 1060500901  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590431, 979460321) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500901]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500901 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.872976' WHERE "spree_products"."id" = 1060500901 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500901], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.873991' WHERE "spree_products"."id" = 1060500901  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590432, 979460322) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500901]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500901 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.880028' WHERE "spree_products"."id" = 1060500901 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500901], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.880983' WHERE "spree_products"."id" = 1060500901  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590433, 979460323) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500901]] Current value to assign : Current value to assign : Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590431 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590432 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590433 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.895200' WHERE "spree_products"."id" = 1060500901  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590431 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.896304' WHERE "spree_products"."id" = 1060500901 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.897274' WHERE "spree_products"."id" = 1060500901  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590432 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.898089' WHERE "spree_products"."id" = 1060500901 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.898989' WHERE "spree_products"."id" = 1060500901  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590433 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.899768' WHERE "spree_products"."id" = 1060500901 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500901) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500901 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:08:11.901759' WHERE "spree_products"."id" = 1060500901 Row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", 100, 30, "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] succesfully SAVED : ID 1060500901 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.907716' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.908729' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590434 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.909830' WHERE "spree_products"."id" = 1060500902  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500902  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835143], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500902, "updated_at" = '2012-10-21 11:08:11.914599' WHERE "spree_product_properties"."id" = 1073273435 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835142], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500902, "updated_at" = '2012-10-21 11:08:11.917139' WHERE "spree_product_properties"."id" = 1073273436 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["product_id", nil], ["property_id", 905835144], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500902, "updated_at" = '2012-10-21 11:08:11.920337' WHERE "spree_product_properties"."id" = 1073273437 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451756 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451756], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500902 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500902, 558398963) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398957 AND "spree_taxons"."taxonomy_id" = 854451753 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500902, 558398958)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500902, 558398957) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500902 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500902) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["option_type_id", 935339300], ["position", 1], ["product_id", 1060500902], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (10.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.938186' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.950379' WHERE "spree_products"."id" = 1060500902  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590435, 979460321) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500902]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500902 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.958313' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.959431' WHERE "spree_products"."id" = 1060500902  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590436, 979460322) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500902]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::OptionType Load (10.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.5ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500902 AND "spree_option_types"."id" = 935339300 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339300 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.980244' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:11.981414' WHERE "spree_products"."id" = 1060500902  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590437, 979460323) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500902]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:08:11 UTC +00:00]] Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500902 AND "spree_option_types"."id" = 935339301 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500902) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["option_type_id", 935339301], ["position", 2], ["product_id", 1060500902], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339301 LIMIT 1 Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339301) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339301], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.008033' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.009056' WHERE "spree_products"."id" = 1060500902  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590438, 979460324) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500902]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500902 AND "spree_option_types"."id" = 935339301 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339301 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339301) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "colour"], ["option_type_id", 935339301], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.018080' WHERE "spree_products"."id" = 1060500902 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500902], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.019339' WHERE "spree_products"."id" = 1060500902  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590439, 979460325) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500902]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590435 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590436 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590437 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590438 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590439 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.042260' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590435 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.043396' WHERE "spree_products"."id" = 1060500902 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.045105' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590436 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.046060' WHERE "spree_products"."id" = 1060500902 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.047012' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590437 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.047847' WHERE "spree_products"."id" = 1060500902 Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.049038' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590438 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.049822' WHERE "spree_products"."id" = 1060500902 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500902 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.050747' WHERE "spree_products"."id" = 1060500902  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590439 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.051498' WHERE "spree_products"."id" = 1060500902 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500902) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500902 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:08:12.054097' WHERE "spree_products"."id" = 1060500902 Row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] succesfully SAVED : ID 1060500902 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (8.2ms) commit transaction Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500900 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500900 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500901 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500901 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398957 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451753 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (2.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398961 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398961 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398962 ORDER BY "lft" SQL (2.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.4ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (1.5ms) DELETE FROM "spree_zones"  (0.2ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: #  (0.0ms) begin transaction SQL (0.5ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451757], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (2.7ms) commit transaction  (0.0ms) begin transaction  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.7ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451757], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (2.3ms) commit transaction  (0.0ms) begin transaction  (0.3ms) UPDATE "spree_taxons" SET "parent_id" = 558398964, "updated_at" = '2012-10-21 11:08:12.145330' WHERE "spree_taxons"."id" = 558398965 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398964]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398965]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398965 THEN 558398964 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398964]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398965]]  (3.6ms) commit transaction  (0.3ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398964 ORDER BY "lft"  (0.0ms) begin transaction Current value to assign : DEMO_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.5ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.9ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.220359' WHERE "spree_products"."id" = 1060500903 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500903], ["sku", "DEMO_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.221955' WHERE "spree_products"."id" = 1060500903  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590440 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.222951' WHERE "spree_products"."id" = 1060500903  (0.7ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500903  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_001' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "test_pp_001"], ["presentation", "Test pp 001"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Created New Property # SQL (0.2ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["product_id", nil], ["property_id", 905835145], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["value", nil]]  (0.2ms) UPDATE "spree_product_properties" SET "product_id" = 1060500903, "updated_at" = '2012-10-21 11:08:12.228328' WHERE "spree_product_properties"."id" = 1073273438 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (1.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500903 Product assigned to Taxons : ["Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500903, 558398964) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451758 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.4ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451758], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500903, 558398966) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "mime_type"], ["position", 0], ["presentation", "Mime type"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionType Exists (0.7ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500903 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500903) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["option_type_id", 935339302], ["position", 1], ["product_id", 1060500903], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339302) ORDER BY position DESC LIMIT 1 SQL (6.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "jpeg"], ["option_type_id", 935339302], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.273020' WHERE "spree_products"."id" = 1060500903 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500903], ["sku", "DEMO_001_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.274582' WHERE "spree_products"."id" = 1060500903  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590441, 979460326) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500903]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1 Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500903 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339302) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "PDF"], ["option_type_id", 935339302], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.284100' WHERE "spree_products"."id" = 1060500903 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500903], ["sku", "DEMO_001_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.316487' WHERE "spree_products"."id" = 1060500903  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590442, 979460327) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500903]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.7ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1 Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500903 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339302) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "PNG"], ["option_type_id", 935339302], ["position", 3], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.326044' WHERE "spree_products"."id" = 1060500903 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500903], ["sku", "DEMO_001_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.327374' WHERE "spree_products"."id" = 1060500903  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590443, 979460328) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500903]] Current value to assign : Current value to assign : Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590441 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590442 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590443 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.350583' WHERE "spree_products"."id" = 1060500903  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590441 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.352001' WHERE "spree_products"."id" = 1060500903 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.353680' WHERE "spree_products"."id" = 1060500903  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 6 WHERE "spree_variants"."id" = 1013590442 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.355414' WHERE "spree_products"."id" = 1060500903 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.357027' WHERE "spree_products"."id" = 1060500903  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590443 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.357804' WHERE "spree_products"."id" = 1060500903 Saving csv row ["DEMO_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "test_pp_001", nil, nil, "Paintings", "WaterColour", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "12|6|7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500903) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500903 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 25, "updated_at" = '2012-10-21 11:08:12.360583' WHERE "spree_products"."id" = 1060500903 Current value to assign : DEMO_002 Current value to assign : Demo Excel Load via Jruby Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load-via-jruby%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load-via-jruby' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load via Jruby"], ["permalink", "demo-excel-load-via-jruby"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (15.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.382205' WHERE "spree_products"."id" = 1060500904 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500904], ["sku", "DEMO_002"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.383472' WHERE "spree_products"."id" = 1060500904  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590444 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.384852' WHERE "spree_products"."id" = 1060500904  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500904  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "test_pp_003"], ["presentation", "Test pp 003"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["product_id", nil], ["property_id", 905835146], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500904, "updated_at" = '2012-10-21 11:08:12.390584' WHERE "spree_product_properties"."id" = 1073273439 Created New ProductProperty # Current value to assign : Current value to assign : Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500904 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500904, 558398964) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451759 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451759], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500904, 558398967) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398964 AND "spree_taxons"."taxonomy_id" = 854451757 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398964]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398964], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451757], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398964]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398968]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398968 THEN 558398964 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398964]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398968]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398968 AND "spree_taxons"."taxonomy_id" = 854451757 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398968]] SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Seascape"], ["parent_id", 558398968], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451757], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398968]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398969]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398969 THEN 558398968 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398968]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398969]] Product assigned to Taxons : ["Nature", "Seascape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500904, 558398968)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500904, 558398969) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500904 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500904) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["option_type_id", 935339302], ["position", 1], ["product_id", 1060500904], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.427515' WHERE "spree_products"."id" = 1060500904 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500904], ["sku", "DEMO_002_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.428433' WHERE "spree_products"."id" = 1060500904  (0.2ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590445, 979460326) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500904]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500904 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.434751' WHERE "spree_products"."id" = 1060500904 SQL (0.0ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500904], ["sku", "DEMO_002_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.435584' WHERE "spree_products"."id" = 1060500904  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590446, 979460327) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500904]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.3ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500904 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.441770' WHERE "spree_products"."id" = 1060500904 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500904], ["sku", "DEMO_002_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.442808' WHERE "spree_products"."id" = 1060500904  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590447, 979460328) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500904]] Current value to assign : Current value to assign : Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590445 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590446 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590447 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.456580' WHERE "spree_products"."id" = 1060500904  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590445 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.457492' WHERE "spree_products"."id" = 1060500904 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.458875' WHERE "spree_products"."id" = 1060500904  (0.0ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590446 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.459585' WHERE "spree_products"."id" = 1060500904 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.460778' WHERE "spree_products"."id" = 1060500904  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590447 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.461485' WHERE "spree_products"."id" = 1060500904 Saving csv row ["DEMO_002", "Demo Excel Load via Jruby", "less blah", "2011-05-14", "100.00", "30.00", "test_pp_003", nil, nil, "Paintings", "Oils", "Paintings>Nature>Seascape", "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", nil, nil, "5|4|2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load-via-jruby' AND "spree_products"."id" != 1060500904) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500904 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.6ms) UPDATE "spree_products" SET "count_on_hand" = 11, "updated_at" = '2012-10-21 11:08:12.463571' WHERE "spree_products"."id" = 1060500904 Current value to assign : DEMO_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (1.9ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.471399' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.472486' WHERE "spree_products"."id" = 1060500905  (3.6ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590448 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.477344' WHERE "spree_products"."id" = 1060500905  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500905  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_002' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "test_pp_002"], ["presentation", "Test pp 002"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["product_id", nil], ["property_id", 905835147], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500905, "updated_at" = '2012-10-21 11:08:12.482330' WHERE "spree_product_properties"."id" = 1073273440 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'test_pp_003' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["product_id", nil], ["property_id", 905835146], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["value", "Example free value"]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500905, "updated_at" = '2012-10-21 11:08:12.485313' WHERE "spree_product_properties"."id" = 1073273441 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."name" = 'yet_another_property' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_properties" ("created_at", "name", "presentation", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "yet_another_property"], ["presentation", "Yet another property"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Created New Property # SQL (0.1ms) INSERT INTO "spree_product_properties" ("created_at", "product_id", "property_id", "updated_at", "value") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["product_id", nil], ["property_id", 905835148], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["value", nil]]  (0.1ms) UPDATE "spree_product_properties" SET "product_id" = 1060500905, "updated_at" = '2012-10-21 11:08:12.488968' WHERE "spree_product_properties"."id" = 1073273442 Created New ProductProperty # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451760 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451760], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500905 Product assigned to Taxons : ["Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500905, 558398970) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398964 AND "spree_taxons"."taxonomy_id" = 854451757 LIMIT 1 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500905, 558398965)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500905, 558398964) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.1ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500905 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500905) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["option_type_id", 935339302], ["position", 1], ["product_id", 1060500905], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'jpeg' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.508928' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003_1"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.509931' WHERE "spree_products"."id" = 1060500905  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590449, 979460326) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500905]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500905 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PDF' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.516946' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003_2"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.517967' WHERE "spree_products"."id" = 1060500905  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590450, 979460327) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500905]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'mime_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500905 AND "spree_option_types"."id" = 935339302 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'PNG' AND "spree_option_values"."option_type_id" = 935339302 LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.524480' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003_3"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.525585' WHERE "spree_products"."id" = 1060500905  (0.0ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590451, 979460328) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500905]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_types" ("created_at", "name", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "print_type"], ["position", 0], ["presentation", "Print type"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500905 AND "spree_option_types"."id" = 935339303 ORDER BY spree_option_types.position LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE ("spree_product_option_types"."product_id" = 1060500905) ORDER BY position DESC LIMIT 1 SQL (0.5ms) INSERT INTO "spree_product_option_types" ("created_at", "option_type_id", "position", "product_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["option_type_id", 935339303], ["position", 2], ["product_id", 1060500905], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'black_white' AND "spree_option_values"."option_type_id" = 935339303 LIMIT 1 Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339303) ORDER BY position DESC LIMIT 1 SQL (0.1ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "black_white"], ["option_type_id", 935339303], ["position", 1], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.538049' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003_4"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.540302' WHERE "spree_products"."id" = 1060500905  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590452, 979460329) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500905]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1 Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."name" = 'print_type' ORDER BY spree_option_types.position LIMIT 1 Spree::OptionType Exists (0.4ms) SELECT 1 AS one FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = 1060500905 AND "spree_option_types"."id" = 935339303 ORDER BY spree_option_types.position LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."name" = 'colour' AND "spree_option_values"."option_type_id" = 935339303 LIMIT 1 Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE ("spree_option_values"."option_type_id" = 935339303) ORDER BY position DESC LIMIT 1 SQL (0.2ms) INSERT INTO "spree_option_values" ("created_at", "name", "option_type_id", "position", "presentation", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "colour"], ["option_type_id", 935339303], ["position", 2], ["presentation", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.4ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.548549' WHERE "spree_products"."id" = 1060500905 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", nil], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500905], ["sku", "DEMO_003_5"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.549901' WHERE "spree_products"."id" = 1060500905  (0.1ms) INSERT INTO "spree_option_values_variants" ("variant_id", "option_value_id") VALUES (1013590453, 979460330) Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1060500905]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 't') LIMIT 1 Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) ORDER BY "spree_variants".position ASC Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590449 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590450 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590451 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590452 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590453 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1  (0.1ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Product Load (49.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.613289' WHERE "spree_products"."id" = 1060500905  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590449 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.614725' WHERE "spree_products"."id" = 1060500905 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.615941' WHERE "spree_products"."id" = 1060500905  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 4 WHERE "spree_variants"."id" = 1013590450 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.616897' WHERE "spree_products"."id" = 1060500905 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.617775' WHERE "spree_products"."id" = 1060500905  (0.3ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590451 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.618852' WHERE "spree_products"."id" = 1060500905 Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.619982' WHERE "spree_products"."id" = 1060500905  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 12 WHERE "spree_variants"."id" = 1013590452 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.620831' WHERE "spree_products"."id" = 1060500905 Spree::Product Load (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500905 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.622022' WHERE "spree_products"."id" = 1060500905  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 18 WHERE "spree_variants"."id" = 1013590453 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.622933' WHERE "spree_products"."id" = 1060500905 Saving csv row ["DEMO_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "test_pp_002", "test_pp_003:Example free value", "yet_another_property", "Drawings", "Paintings>Landscape", nil, "mime_type:jpeg", "mime_type:PDF", "mime_type:PNG", "print_type:black_white", "print_type:colour", "12|4|7|12|18"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500905) LIMIT 1  (0.2ms) SELECT SUM("spree_variants"."count_on_hand") AS sum_id FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500905 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL)  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 53, "updated_at" = '2012-10-21 11:08:12.625587' WHERE "spree_products"."id" = 1060500905  (12.0ms) commit transaction Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"   (0.2ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_products" Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_001' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500903 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500903 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."sku" = 'DEMO_002' LIMIT 1 Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500904 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500904 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398964 LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451757 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398968 LIMIT 1 Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398968 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398969 ORDER BY "lft" SQL (10.9ms) DELETE FROM "spree_products" SQL (1.0ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.8ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (2.1ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (1.7ms) DELETE FROM "spree_taxonomies" SQL (1.7ms) DELETE FROM "spree_zones"  (0.5ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"   (2.9ms) begin transaction  (0.1ms) commit transaction PRODUCT # MASTER: # SQL (2.8ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  Excel Loader processing 0 rows  (0.2ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500906 LIMIT 1 SQL (0.8ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.790324' WHERE "spree_products"."id" = 1060500906 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500906], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.792174' WHERE "spree_products"."id" = 1060500906  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590454 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.793898' WHERE "spree_products"."id" = 1060500906  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500906 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500906 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500906  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500906 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398971 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398971]] SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398971], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398971]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398972]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398972 THEN 558398971 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398971]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398972]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500906 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500906, 558398972)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500906, 558398971) Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500906) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451762 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451762], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500906, 558398973) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500906) LIMIT 1 Spree::InventoryUnit Load (1.0ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590454 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500906) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-21 11:08:12.822943' WHERE "spree_products"."id" = 1060500906  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590454 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.824402' WHERE "spree_products"."id" = 1060500906 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500906 Row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", 399.99, 320, "Paintings>Landscape", "WaterColour", nil, 2] succesfully SAVED : ID 1060500906 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100 Current value to assign : 30  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500907 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.831032' WHERE "spree_products"."id" = 1060500907 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500907], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.832263' WHERE "spree_products"."id" = 1060500907  (0.2ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590455 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.833435' WHERE "spree_products"."id" = 1060500907  (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500907 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500907 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500907  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500907 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500907 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500907, 558398971) Spree::Product Exists (0.4ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500907) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451763 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451763], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500907, 558398974) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500907) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398971 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398971]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398971], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398971]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398975 THEN 558398971 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398971]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398975 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398975], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398975]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398976]] SQL (0.3ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398976 THEN 558398975 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398976]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500907, 558398975)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500907, 558398976) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500907) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590455 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500907) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-21 11:08:12.865838' WHERE "spree_products"."id" = 1060500907  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590455 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.867433' WHERE "spree_products"."id" = 1060500907 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500907 Row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", 100, 30, "Paintings", "Oils", "Paintings>Nature>Landscape", 5] succesfully SAVED : ID 1060500907 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500908 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.874276' WHERE "spree_products"."id" = 1060500908 SQL (0.2ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500908], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.875589' WHERE "spree_products"."id" = 1060500908  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590456 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.880859' WHERE "spree_products"."id" = 1060500908  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500908 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500908 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.3ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500908  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500908 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451764], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398977 AND "spree_taxons"."taxonomy_id" = 854451764 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398977]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398977], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451764], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398977]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398978]] SQL (0.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398978 THEN 558398977 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398977]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398978]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500908 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500908, 558398978)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500908, 558398977) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500908) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.0ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["name", "Landscape"], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451765 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451765], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500908, 558398979) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500908) LIMIT 1 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590456 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500908) LIMIT 1  (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-21 11:08:12.921024' WHERE "spree_products"."id" = 1060500908  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590456 SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.922590' WHERE "spree_products"."id" = 1060500908 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500908 Row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", 50.34, 23.34, "Drawings>Landscape", "Landscape", nil, 7] succesfully SAVED : ID 1060500908 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500909 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.931565' WHERE "spree_products"."id" = 1060500909 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500909], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.3ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.932386' WHERE "spree_products"."id" = 1060500909  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590457 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:12.933933' WHERE "spree_products"."id" = 1060500909  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500909 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500909 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500909  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500909 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398977 AND "spree_taxons"."taxonomy_id" = 854451764 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500909 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.3ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398978)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398977) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500909) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398971 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398975 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398975], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:12 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398975]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398980]] SQL (0.9ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398980 THEN 558398975 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398975]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398980]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398980 AND "spree_taxons"."taxonomy_id" = 854451761 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398980]] SQL (2.0ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398980], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451761], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398980]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398981]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398981 THEN 558398980 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398980]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398981]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398975)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398980)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398981)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500909, 558398971) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500909) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590457 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500909) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-21 11:08:13.034025' WHERE "spree_products"."id" = 1060500909  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590457 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.035736' WHERE "spree_products"."id" = 1060500909 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500909 Row ["test_ct_004", "Demo four", "blah", "2012-07-01", 0.34, 0.01, "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", 3] succesfully SAVED : ID 1060500909 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500910 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.043184' WHERE "spree_products"."id" = 1060500910 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500910], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.044187' WHERE "spree_products"."id" = 1060500910  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590458 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.045697' WHERE "spree_products"."id" = 1060500910  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500910 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500910 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500910  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500910 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398977 AND "spree_taxons"."taxonomy_id" = 854451764 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398978 AND "spree_taxons"."taxonomy_id" = 854451764 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398978]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398978], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451764], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398978]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398982]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398982 THEN 558398978 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398978]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398982]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500910 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500910, 558398978)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500910, 558398982)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500910, 558398977) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500910) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451763 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500910, 558398974) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500910) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590458 AND ("spree_inventory_units"."state" IN ('backordered')) Spree::Product Exists (0.6ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500910) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-21 11:08:13.065538' WHERE "spree_products"."id" = 1060500910  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590458 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.066982' WHERE "spree_products"."id" = 1060500910 SQL (0.2ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500910 Row ["test_ct_005", "Demo five", "blah", "2012-07-01", 3.34, 3.01, "Drawings>Landscape>Bristol", "Oils", nil, 3] succesfully SAVED : ID 1060500910 Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign : Current value to assign :  (5.7ms) commit transaction  (3.9ms) SELECT COUNT(*) FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451762 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451763 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451765 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"  (0.4ms) SELECT COUNT(*) FROM "spree_taxons"  Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451761 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398971 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398971) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398975 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398975) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398975) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398971 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398975 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398980 ORDER BY "lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398981 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398980) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451764 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398978 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398978 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398982 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398982) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451763 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451763 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398974 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451765 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451765 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398979 ORDER BY "lft" SQL (2.5ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.9ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.8ms) DELETE FROM "spree_properties" SQL (1.4ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (2.2ms) DELETE FROM "spree_taxons" SQL (1.9ms) DELETE FROM "spree_taxonomies" SQL (3.8ms) DELETE FROM "spree_zones"  (0.1ms) SELECT COUNT(*) FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image')  (0.1ms) SELECT COUNT(*) FROM "spree_products"  (0.0ms) begin transaction  (0.0ms) commit transaction PRODUCT # MASTER: # SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (2.6ms) DELETE FROM "spree_taxons"  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons"  (0.0ms) begin transaction Current value to assign : test_ct_001 Current value to assign : Demo Product for AR Loader Current value to assign : blah blah Current value to assign : 2011-02-14 Current value to assign : 399.99 Current value to assign : 320.00  (0.2ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-product-for-ar-loader%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-product-for-ar-loader' LIMIT 1 SQL (0.6ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Mon, 14 Feb 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Product for AR Loader"], ["permalink", "demo-product-for-ar-loader"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500911 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.159692' WHERE "spree_products"."id" = 1060500911 SQL (1.3ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500911], ["sku", "test_ct_001"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.162143' WHERE "spree_products"."id" = 1060500911  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590459 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.163946' WHERE "spree_products"."id" = 1060500911  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500911 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500911 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500911  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500911 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["name", "Paintings"], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.4ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 1], ["name", "Paintings"], ["parent_id", nil], ["permalink", "paintings"], ["position", 0], ["rgt", 2], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398983 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1  (0.5ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398983]] SQL (0.1ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 3], ["name", "Landscape"], ["parent_id", 558398983], ["permalink", "paintings/landscape"], ["position", 0], ["rgt", 4], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398983]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398984]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 2 AND 2 THEN "lft" + 4 - 2 WHEN "lft" BETWEEN 3 AND 4 THEN "lft" + 2 - 3 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 2 AND 2 THEN "rgt" + 4 - 2 WHEN "rgt" BETWEEN 3 AND 4 THEN "rgt" + 2 - 3 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398984 THEN 558398983 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398983]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398984]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500911 Product assigned to Taxons : ["Landscape", "Paintings"]  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500911, 558398984)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500911, 558398983) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500911) LIMIT 1 Spree::Taxonomy Load (0.2ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'WaterColour' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["name", "WaterColour"], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451767 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.3ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 5], ["name", "WaterColour"], ["parent_id", nil], ["permalink", "watercolour"], ["position", 0], ["rgt", 6], ["taxonomy_id", 854451767], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Product assigned to Taxons : ["WaterColour"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500911, 558398985) Current value to assign : Spree::Product Exists (0.5ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500911) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590459 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_001", "Demo Product for AR Loader", "blah blah", "2011-02-14", "399.99", "320.00", "Paintings>Landscape", "WaterColour", nil, "2"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-product-for-ar-loader' AND "spree_products"."id" != 1060500911) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 2, "updated_at" = '2012-10-21 11:08:13.199762' WHERE "spree_products"."id" = 1060500911  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 2 WHERE "spree_variants"."id" = 1013590459 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.201202' WHERE "spree_products"."id" = 1060500911 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500911 Current value to assign : test_ct_002 Current value to assign : Demo Excel Load Current value to assign : less blah Current value to assign : 2011-05-14 Current value to assign : 100.00 Current value to assign : 30.00  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-excel-load%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-excel-load' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sat, 14 May 2011 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "less blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo Excel Load"], ["permalink", "demo-excel-load"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500912 LIMIT 1 SQL (0.2ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.207728' WHERE "spree_products"."id" = 1060500912 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500912], ["sku", "test_ct_002"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.208615' WHERE "spree_products"."id" = 1060500912  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590460 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.209594' WHERE "spree_products"."id" = 1060500912  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500912 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500912 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500912  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500912 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500912 Product assigned to Taxons : ["Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500912, 558398983) Spree::Product Exists (0.3ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500912) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["name", "Oils"], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451768 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 7], ["name", "Oils"], ["parent_id", nil], ["permalink", "oils"], ["position", 0], ["rgt", 8], ["taxonomy_id", 854451768], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Product assigned to Taxons : ["Oils"]  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500912, 558398986) Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500912) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398983 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398983]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 9], ["name", "Nature"], ["parent_id", 558398983], ["permalink", "paintings/nature"], ["position", 0], ["rgt", 10], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398983]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] SQL (0.5ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 4 AND 8 THEN "lft" + 10 - 8 WHEN "lft" BETWEEN 9 AND 10 THEN "lft" + 4 - 9 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 4 AND 8 THEN "rgt" + 10 - 8 WHEN "rgt" BETWEEN 9 AND 10 THEN "rgt" + 4 - 9 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398987 THEN 558398983 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398983]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398987 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1  (0.3ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 11], ["name", "Landscape"], ["parent_id", 558398987], ["permalink", "paintings/nature/landscape"], ["position", 0], ["rgt", 12], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398987]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398988]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 5 AND 10 THEN "lft" + 12 - 10 WHEN "lft" BETWEEN 11 AND 12 THEN "lft" + 5 - 11 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 5 AND 10 THEN "rgt" + 12 - 10 WHEN "rgt" BETWEEN 11 AND 12 THEN "rgt" + 5 - 11 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398988 THEN 558398987 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398988]] Product assigned to Taxons : ["Nature", "Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500912, 558398987)  (0.0ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500912, 558398988) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500912) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590460 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_002", "Demo Excel Load", "less blah", "2011-05-14", "100.00", "30.00", "Paintings", "Oils", "Paintings>Nature>Landscape", "5"] to table object : # Spree::Product Exists (0.0ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-excel-load' AND "spree_products"."id" != 1060500912) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 5, "updated_at" = '2012-10-21 11:08:13.245838' WHERE "spree_products"."id" = 1060500912  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 5 WHERE "spree_variants"."id" = 1013590460 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.247710' WHERE "spree_products"."id" = 1060500912 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500912 Current value to assign : test_ct_003 Current value to assign : Demo third row in future Current value to assign : more blah blah Current value to assign : 2012-07-01 Current value to assign : 50.34 Current value to assign : 23.34  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-third-row-in-future%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-third-row-in-future' LIMIT 1 SQL (0.4ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "more blah blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo third row in future"], ["permalink", "demo-third-row-in-future"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500913 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.254213' WHERE "spree_products"."id" = 1060500913 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500913], ["sku", "test_ct_003"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.256028' WHERE "spree_products"."id" = 1060500913  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590461 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.257289' WHERE "spree_products"."id" = 1060500913  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500913 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500913 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500913  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500913 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["name", "Drawings"], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.8ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 13], ["name", "Drawings"], ["parent_id", nil], ["permalink", "drawings"], ["position", 0], ["rgt", 14], ["taxonomy_id", 854451769], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398989 AND "spree_taxons"."taxonomy_id" = 854451769 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398989]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 15], ["name", "Landscape"], ["parent_id", 558398989], ["permalink", "drawings/landscape"], ["position", 0], ["rgt", 16], ["taxonomy_id", 854451769], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398989]] Spree::Taxon Load (0.2ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398990]] SQL (5.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 14 AND 14 THEN "lft" + 16 - 14 WHEN "lft" BETWEEN 15 AND 16 THEN "lft" + 14 - 15 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 14 AND 14 THEN "rgt" + 16 - 14 WHEN "rgt" BETWEEN 15 AND 16 THEN "rgt" + 14 - 15 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398990 THEN 558398989 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398989]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398990]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500913 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500913, 558398990)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500913, 558398989) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500913) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 SQL (0.1ms) INSERT INTO "spree_taxonomies" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["name", "Landscape"], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451770 AND "spree_taxons"."parent_id" IS NULL LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 17], ["name", "Landscape"], ["parent_id", nil], ["permalink", "landscape"], ["position", 0], ["rgt", 18], ["taxonomy_id", 854451770], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Product assigned to Taxons : ["Landscape"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500913, 558398991) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500913) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590461 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_003", "Demo third row in future", "more blah blah", "2012-07-01", "50.34", "23.34", "Drawings>Landscape", "Landscape", nil, "7"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-third-row-in-future' AND "spree_products"."id" != 1060500913) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 7, "updated_at" = '2012-10-21 11:08:13.317905' WHERE "spree_products"."id" = 1060500913  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 7 WHERE "spree_variants"."id" = 1013590461 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.319812' WHERE "spree_products"."id" = 1060500913 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500913 Current value to assign : test_ct_004 Current value to assign : Demo four Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 0.34 Current value to assign : 0.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-four%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-four' LIMIT 1 SQL (0.2ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo four"], ["permalink", "demo-four"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500914 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.329596' WHERE "spree_products"."id" = 1060500914 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500914], ["sku", "test_ct_004"], ["weight", nil], ["width", nil]] SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.331857' WHERE "spree_products"."id" = 1060500914  (0.8ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590462 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.333596' WHERE "spree_products"."id" = 1060500914  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500914 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500914 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500914  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500914 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398989 AND "spree_taxons"."taxonomy_id" = 854451769 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500914 Product assigned to Taxons : ["Landscape", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398990)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398989) Current value to assign : Spree::Product Exists (0.2ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500914) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Nature' AND "spree_taxons"."parent_id" = 558398983 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' AND "spree_taxons"."parent_id" = 558398987 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1  (0.6ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] SQL (0.5ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 19], ["name", "Seascape"], ["parent_id", 558398987], ["permalink", "paintings/nature/seascape"], ["position", 0], ["rgt", 20], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398987]] Spree::Taxon Load (0.3ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398992]] SQL (7.6ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 7 AND 18 THEN "lft" + 20 - 18 WHEN "lft" BETWEEN 19 AND 20 THEN "lft" + 7 - 19 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 7 AND 18 THEN "rgt" + 20 - 18 WHEN "rgt" BETWEEN 19 AND 20 THEN "rgt" + 7 - 19 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398992 THEN 558398987 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398987]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398992]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' AND "spree_taxons"."parent_id" = 558398992 AND "spree_taxons"."taxonomy_id" = 854451766 LIMIT 1  (0.2ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398992]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 21], ["name", "Cliffs"], ["parent_id", 558398992], ["permalink", "paintings/nature/seascape/cliffs"], ["position", 0], ["rgt", 22], ["taxonomy_id", 854451766], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398992]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398993]] SQL (0.7ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 8 AND 20 THEN "lft" + 22 - 20 WHEN "lft" BETWEEN 21 AND 22 THEN "lft" + 8 - 21 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 8 AND 20 THEN "rgt" + 22 - 20 WHEN "rgt" BETWEEN 21 AND 22 THEN "rgt" + 8 - 21 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398993 THEN 558398992 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398992]] Spree::Taxon Load (0.0ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398993]] Product assigned to Taxons : ["Nature", "Seascape", "Cliffs", "Paintings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398987)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398992)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398993)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500914, 558398983) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500914) LIMIT 1 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590462 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_004", "Demo four", "blah", "2012-07-01", "0.34", "0.01", "Drawings>Landscape", nil, "Paintings>Nature>Seascape>Cliffs", "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-four' AND "spree_products"."id" != 1060500914) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-21 11:08:13.374013' WHERE "spree_products"."id" = 1060500914  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590462 SQL (0.5ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.375445' WHERE "spree_products"."id" = 1060500914 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500914 Current value to assign : test_ct_005 Current value to assign : Demo five Current value to assign : blah Current value to assign : 2012-07-01 Current value to assign : 3.34 Current value to assign : 3.01  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_products" WHERE (permalink LIKE 'demo-five%') Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE "spree_products"."permalink" = 'demo-five' LIMIT 1 SQL (0.3ms) INSERT INTO "spree_products" ("available_on", "count_on_hand", "created_at", "deleted_at", "description", "meta_description", "meta_keywords", "name", "permalink", "shipping_category_id", "tax_category_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["available_on", Sun, 01 Jul 2012 00:00:00 UTC +00:00], ["count_on_hand", 0], ["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["deleted_at", nil], ["description", "blah"], ["meta_description", nil], ["meta_keywords", nil], ["name", "Demo five"], ["permalink", "demo-five"], ["shipping_category_id", nil], ["tax_category_id", nil], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = 1060500915 LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.387158' WHERE "spree_products"."id" = 1060500915 SQL (0.1ms) INSERT INTO "spree_variants" ("cost_price", "count_on_hand", "deleted_at", "depth", "height", "is_master", "position", "price", "product_id", "sku", "weight", "width") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", #], ["count_on_hand", 0], ["deleted_at", nil], ["depth", nil], ["height", nil], ["is_master", false], ["position", nil], ["price", #], ["product_id", 1060500915], ["sku", "test_ct_005"], ["weight", nil], ["width", nil]] SQL (0.0ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.388345' WHERE "spree_products"."id" = 1060500915  (0.1ms) UPDATE "spree_variants" SET "is_master" = 't' WHERE "spree_variants"."id" = 1013590463 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.389709' WHERE "spree_products"."id" = 1060500915  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500915 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500915 AND ("spree_variants".is_master = 't') LIMIT 1 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500915  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."product_id" = 1060500915 AND ("spree_variants".is_master = 'f' AND "spree_variants".deleted_at IS NULL) Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' AND "spree_taxons"."parent_id" = 558398989 AND "spree_taxons"."taxonomy_id" = 854451769 LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Bristol' AND "spree_taxons"."parent_id" = 558398990 AND "spree_taxons"."taxonomy_id" = 854451769 LIMIT 1  (0.1ms) SELECT MAX("spree_taxons"."rgt") AS max_id FROM "spree_taxons"  Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398990]] SQL (0.2ms) INSERT INTO "spree_taxons" ("created_at", "description", "icon_content_type", "icon_file_name", "icon_file_size", "icon_updated_at", "lft", "name", "parent_id", "permalink", "position", "rgt", "taxonomy_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00], ["description", nil], ["icon_content_type", nil], ["icon_file_name", nil], ["icon_file_size", nil], ["icon_updated_at", nil], ["lft", 23], ["name", "Bristol"], ["parent_id", 558398990], ["permalink", "drawings/landscape/bristol"], ["position", 0], ["rgt", 24], ["taxonomy_id", 854451769], ["updated_at", Sun, 21 Oct 2012 11:08:13 UTC +00:00]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? ORDER BY "spree_taxons"."lft" LIMIT 1 [["id", 558398990]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398994]] SQL (0.4ms) UPDATE "spree_taxons" SET "lft" = CASE WHEN "lft" BETWEEN 19 AND 22 THEN "lft" + 24 - 22 WHEN "lft" BETWEEN 23 AND 24 THEN "lft" + 19 - 23 ELSE "lft" END, "rgt" = CASE WHEN "rgt" BETWEEN 19 AND 22 THEN "rgt" + 24 - 22 WHEN "rgt" BETWEEN 23 AND 24 THEN "rgt" + 19 - 23 ELSE "rgt" END, "parent_id" = CASE WHEN id = 558398994 THEN 558398990 ELSE "parent_id" END WHERE "spree_taxons"."id" IN (SELECT "spree_taxons"."id" FROM "spree_taxons" ORDER BY "spree_taxons"."lft") Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398990]] Spree::Taxon Load (0.1ms) SELECT "lft", "rgt", "parent_id" FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 558398994]] Spree::Taxon Load (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = 1060500915 Product assigned to Taxons : ["Landscape", "Bristol", "Drawings"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500915, 558398990)  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500915, 558398994)  (0.2ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500915, 558398989) Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500915) LIMIT 1 Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451768 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Product assigned to Taxons : ["Oils"]  (0.1ms) INSERT INTO "spree_products_taxons" ("product_id", "taxon_id") VALUES (1060500915, 558398986) Current value to assign : Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500915) LIMIT 1 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."variant_id" = 1013590463 AND ("spree_inventory_units"."state" IN ('backordered')) Saving csv row ["test_ct_005", "Demo five", "blah", "2012-07-01", "3.34", "3.01", "Drawings>Landscape>Bristol", "Oils", nil, "3"] to table object : # Spree::Product Exists (0.1ms) SELECT 1 AS one FROM "spree_products" WHERE ("spree_products"."permalink" = 'demo-five' AND "spree_products"."id" != 1060500915) LIMIT 1  (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 3, "updated_at" = '2012-10-21 11:08:13.409007' WHERE "spree_products"."id" = 1060500915  (0.1ms) UPDATE "spree_variants" SET "count_on_hand" = 3 WHERE "spree_variants"."id" = 1013590463 SQL (0.1ms) UPDATE "spree_products" SET "updated_at" = '2012-10-21 11:08:13.410597' WHERE "spree_products"."id" = 1060500915 SQL (0.1ms) UPDATE "spree_products" SET "count_on_hand" = 0 WHERE "spree_products"."id" = 1060500915  (7.0ms) commit transaction  (0.1ms) SELECT COUNT(*) FROM "spree_taxonomies"  Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies"  Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451767 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451768 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451770 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons"   (0.1ms) SELECT COUNT(*) FROM "spree_taxons" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Paintings' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451766 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398983 ORDER BY "lft"  (0.2ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) AND ("spree_taxons"."id" != 558398983) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 1 AND "spree_taxons"."rgt" <= 12) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398987 ORDER BY "lft"  (0.1ms) SELECT COUNT(*) FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398987) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" >= 4 AND "spree_taxons"."rgt" <= 11) AND ("spree_taxons"."id" != 558398987) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (48.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398983 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = 558398987 LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398992 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Cliffs' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398993 ORDER BY "lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Seascape' LIMIT 1 Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7 AND "spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 558398992) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."name" = 'Landscape' Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Drawings' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451769 AND "spree_taxons"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398990 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398990 AND "spree_taxons"."name" = 'Bristol' ORDER BY "lft" LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398994 ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 19 AND "spree_taxons"."rgt" >= 20) AND ("spree_taxons"."id" != 558398994) ORDER BY "spree_taxons"."lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Oils' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451768 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451768 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398986 ORDER BY "lft" Spree::Taxonomy Load (0.1ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" WHERE "spree_taxonomies"."name" = 'Landscape' LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451770 Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."taxonomy_id" = 854451770 AND "spree_taxons"."parent_id" IS NULL LIMIT 1 Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = 558398991 ORDER BY "lft" Booted Spree using version 1.1.3 SQL (4.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.6ms) DELETE FROM "spree_option_values" SQL (1.6ms) DELETE FROM "spree_properties" SQL (2.2ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (2.1ms) DELETE FROM "spree_taxons" SQL (1.8ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones" SQL (2.4ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.3ms) DELETE FROM "spree_option_types" SQL (1.9ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (2.0ms) DELETE FROM "spree_taxonomies" SQL (1.4ms) DELETE FROM "spree_zones" SQL (1.9ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.5ms) DELETE FROM "spree_option_types" SQL (1.4ms) DELETE FROM "spree_option_values" SQL (1.4ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.5ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (1.4ms) DELETE FROM "spree_taxonomies" SQL (2.1ms) DELETE FROM "spree_zones" SQL (4.1ms) DELETE FROM "spree_products" SQL (0.2ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.8ms) DELETE FROM "spree_option_types" SQL (1.8ms) DELETE FROM "spree_option_values" SQL (2.5ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (1.8ms) DELETE FROM "spree_taxons" SQL (4.0ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones" SQL (2.8ms) DELETE FROM "spree_products" SQL (0.3ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (2.3ms) DELETE FROM "spree_option_types" SQL (2.0ms) DELETE FROM "spree_option_values" SQL (2.2ms) DELETE FROM "spree_properties" SQL (1.8ms) DELETE FROM "spree_product_properties" SQL (1.6ms) DELETE FROM "spree_variants" SQL (3.3ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.6ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (2.5ms) DELETE FROM "spree_products" SQL (0.8ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.7ms) DELETE FROM "spree_option_types" SQL (1.7ms) DELETE FROM "spree_option_values" SQL (2.4ms) DELETE FROM "spree_properties" SQL (1.5ms) DELETE FROM "spree_product_properties" SQL (1.4ms) DELETE FROM "spree_variants" SQL (1.7ms) DELETE FROM "spree_taxons" SQL (1.5ms) DELETE FROM "spree_taxonomies" SQL (1.3ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction SQL (5.1ms) DELETE FROM "spree_products" SQL (0.5ms) DELETE FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') SQL (1.9ms) DELETE FROM "spree_option_types" SQL (1.5ms) DELETE FROM "spree_option_values" SQL (1.5ms) DELETE FROM "spree_properties" SQL (1.6ms) DELETE FROM "spree_product_properties" SQL (1.7ms) DELETE FROM "spree_variants" SQL (2.0ms) DELETE FROM "spree_taxons" SQL (9.6ms) DELETE FROM "spree_taxonomies" SQL (3.2ms) DELETE FROM "spree_zones"  (0.1ms) begin transaction  (0.0ms) commit transaction